home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 / Aminet - June 1993 [Walnut Creek].iso / usenet / sources / volume90 / unix / uucp103d / part01 next >
Encoding:
Internet Message Format  |  1990-02-04  |  69.8 KB

  1. Path: xanth!cs.odu.edu!Amiga-Request
  2. From: Amiga-Request@cs.odu.edu (Amiga Sources/Binaries Moderator)
  3. Newsgroups: comp.sources.amiga
  4. Subject: v90i045: uucp 1.03D - unix compatible uucp/mail/news system, Part01/16
  5. Message-ID: <11272@xanth.cs.odu.edu>
  6. Date: 4 Feb 90 01:51:44 GMT
  7. Sender: tadguy@cs.odu.edu
  8. Reply-To: overload!dillon (Matt Dillon)
  9. Lines: 2613
  10. Approved: tadguy@cs.odu.edu (Tad Guy)
  11. X-Mail-Submissions-To: Amiga@cs.odu.edu
  12.  
  13. Submitted-by: overload!dillon (Matt Dillon)
  14. Posting-number: Volume 90, Issue 045
  15. Archive-name: unix/uucp-1.03d/part01
  16.  
  17. [
  18.   This is the release version of the Dillon/Loftus UUCP package for the
  19.   Amiga.  With this package and a willing UUCP neighbor, it's possible
  20.   for your Amiga to participate in the UUCP network for both file
  21.   transfer and mail, and to join in USENET.
  22.   
  23.   All the files in the two-disk distribution (available via anonymous ftp
  24.   from ucbvax.berkeley.edu) are included in the comp.binaries.amiga postings
  25.   except the sources.  This means that if you don't want the sources, you can
  26.   ignore the postings in comp.sources.amiga.  Additionally, in both groups, a
  27.   list of how the files were originally distributed between the two disks is
  28.   included. 
  29.  
  30.   The file s/man/Standards has been split to allow for posting.  Remember to
  31.   rejoin this file after unsharing.
  32.  
  33.     ...tad
  34. ]
  35.  
  36. #!/bin/sh
  37. # This is a shell archive.  Remove anything before this line, then unpack
  38. # it by saving it into a file and typing "sh file".  To overwrite existing
  39. # files, type "sh file -c".  You can also feed this as standard input via
  40. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  41. # will see the following message at the end:
  42. #        "End of archive 1 (of 16)."
  43. # Contents:  NewsSetup.DOC README.NOW devs devs/.DistFiles
  44. #   devs/Mountlist lib lib/.signature lib/Config lib/Domain
  45. #   lib/Getty-header lib/L.Sys lib/NewsGroups lib/Passwd lib/Security
  46. #   lib/SeqNews lib/news.distribution lib/seq man man/.Distfiles
  47. #   man/Config man/From man/MapExample man/NULL man/PhoneBook
  48. #   man/Rmail man/TrimFile man/expandm s s/.DistFiles s/crontab
  49. #   s/startup-sequence src src/.Distfiles src/GUtil
  50. #   src/GUtil/DMakefile src/GUtil/uident.c src/MUtil
  51. #   src/MUtil/DMakefile src/MUtil/expandm.c src/News060
  52. #   src/News060/Anews src/News060/Anews/DMakefile
  53. #   src/News060/DMakefile src/ReadMe src/TODO src/compress
  54. #   src/compress/DMakefile src/dmail src/dmail/TODO
  55. #   src/dmail/dmkhelp.c src/dmail/execom.h src/getty
  56. #   src/getty/DMakefile src/getty/syms.c src/include src/include/log.h
  57. #   src/include/pwd.h src/include/sys src/include/sys/file.h
  58. #   src/include/sys/stat.h src/include/sys/time.h
  59. #   src/include/sys/types.h src/include/tmpfile.h src/lib
  60. #   src/lib/DMakefile src/lib/getenv.c src/lib/lsys.c src/lib/mntreq.c
  61. #   src/lib/seq.c src/lib/setstdin.c src/lib/sleep.c src/lib/string.c
  62. #   src/lib/syms.c src/lib/tmpfile.c src/lib/validuser.c src/sendmail
  63. #   src/sendmail/DMakefile src/uucico src/uucico/modem.h
  64. #   src/uucico/uuhosts.c src/uucico/uuname.c src/uucico/uupoll.c
  65. #   src/uuser src/uuser/DMakefile src/uuser/mountlist src/version.h
  66. # Wrapped by tadguy@xanth on Sat Feb  3 20:50:54 1990
  67. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  68. if test -f 'NewsSetup.DOC' -a "${1}" != "-c" ; then 
  69.   echo shar: Will not clobber existing file \"'NewsSetup.DOC'\"
  70. else
  71. echo shar: Extracting \"'NewsSetup.DOC'\" \(755 characters\)
  72. sed "s/^X//" >'NewsSetup.DOC' <<'END_OF_FILE'
  73. X
  74. X            NEWSSETUP.DOC
  75. X
  76. X    This is really only a note.  Once you have the rest of UUCP
  77. X    working and get a news feed (by having another machine sent
  78. X    news to you), you should edit the file 'UULIB:Newsgroups'.
  79. X    This file contains a list of newsgroups you wish to receive,
  80. X    one per line.
  81. X
  82. X    Any groups received that are not in this list will be written
  83. X    to the directory UUNEWS:Rejects ... you can clean out this
  84. X    directory with a crontab entry (see DCron manual page) that, say,
  85. X    deletes the directory once a day.
  86. X
  87. X    The program 'ANews', part of William Loftus's 0.60 News
  88. X    distribution, can be used to read news.  News is placed in
  89. X    separate directories in the UUNEWS: directory.
  90. X
  91. X    As I said, really aweful documentation eh?
  92. X
  93. END_OF_FILE
  94. if test 755 -ne `wc -c <'NewsSetup.DOC'`; then
  95.     echo shar: \"'NewsSetup.DOC'\" unpacked with wrong size!
  96. fi
  97. # end of 'NewsSetup.DOC'
  98. fi
  99. if test -f 'README.NOW' -a "${1}" != "-c" ; then 
  100.   echo shar: Will not clobber existing file \"'README.NOW'\"
  101. else
  102. echo shar: Extracting \"'README.NOW'\" \(7968 characters\)
  103. sed "s/^X//" >'README.NOW' <<'END_OF_FILE'
  104. X
  105. X                 README.NOW
  106. X
  107. X                   V1.03D
  108. X    The version number is 1.03D(0.40W/0.60W), or 1.03D for short.
  109. X
  110. X *    After you glance at the rest of this document refer to the
  111. X    file "QuickSetup.DOC".  Seasoned UUCP users may want to
  112. X    glance at QuickSetup.DOC but spend the majority of their
  113. X    time on SlowSetup.DOC
  114. X
  115. X *    UUCP should be tested via QuickSetup.DOC by inexperienced
  116. X    UUCP users before attempting a real installation.
  117. X
  118. X *    The first floppy is bootable (note: distributions on networks
  119. X    do not include commodore 1.3 system executables).  The boot
  120. X    sequence sets up the appropriate directories and assigns and
  121. X    runs two programs (Getty and DCron) in the background before
  122. X    giving you a standard CLI prompt.
  123. X
  124. X    The second floppy contains additional executables, manual pages,
  125. X    and the source code.
  126. X
  127. X                 ** Credits **
  128. X
  129. X    P.S. I try not to imply favoritism and have attempted to put
  130. X    together exactly who did what in this release.    When possible
  131. X    history is given... and, of course, I know what I have done
  132. X    much better than I know what other people have done so don't
  133. X    take the below list as a 'who did the most' list... everyone
  134. X    did a lot.
  135. X
  136. X
  137. X                  VERSION
  138. X
  139. X    This code is based on months of work on William P. Loftus's
  140. X    Amiga UUCP 0.40 release with news code from his 0.60 release.
  141. X    The version number is shown at the top of this file.  x.xxD
  142. X    refers to versions originated by myself and have nothing to do with
  143. X    WPL's version numbering.  The code is sufficiently different ..
  144. X    MAJORLY different that it is not possible to assign a sub version
  145. X    relative to WPLs version numbering.
  146. X
  147. X                COPYRIGHTS
  148. X
  149. X    This distribution is freely redistributable as long as all files and
  150. X    directory structures, except the 'system' directory which contains
  151. X    commodore-amiga executables, remain intact.  Redistributions
  152. X    which include enhanced or additional modules while keeping the same
  153. X    basic structure are allowed but discouraged (I would much rather you
  154. X    sent the mods / additions to me and I will pass them on as is
  155. X    appropriate).  Redistributions may charge fees at-cost (i.e. non-
  156. X    commercial and non-profit).  These terms may change at any time
  157. X    and all holders of copyrights on code in the distribution may set
  158. X    their own terms independant of any terms set in this document for
  159. X    related executable modules and source in this distribution.
  160. X
  161. X    Copyrights contained in the source effect the specific source files
  162. X    in question and the derived executable independant of other source
  163. X    files and derived executables.  For example, the GNU copyright does
  164. X    not effect the 'sendmail' source and binaries which is entirely my
  165. X    own code.
  166. X
  167. X    source containing the GNU copyright notice and derived executables are
  168. X    subject to the GNU Emacs General Public License.  This license is
  169. X    available in the file man/GNU-LICENSE.
  170. X
  171. X    Matthew Dillon
  172. X    891 Regal Rd.
  173. X    Berkeley, Ca. 94708
  174. X    USA
  175. X
  176. X    pacbell.PacBell.COM!sorinc!overload!dillon
  177. X
  178. X
  179. X    Code containing parts of the original GNU release will contain the
  180. X    following copyright:
  181. X
  182. X    (C) Copyright 1987 by John Gilmore
  183. X    Copying and use of this program are controlled by the terms of the Free
  184. X    Software Foundation's GNU Emacs General Public License.
  185. X
  186. X    Code modified or written from scratch by William Loftus will contain
  187. X    the following copyright:
  188. X
  189. X    (C) Copyright 1988 by William Loftus.  All Rights Reserved.
  190. X
  191. X    Code modified or written from scratch by Matthew Dillon will contain
  192. X    the following copyright:
  193. X
  194. X    (C) Copyright 1989-1990 by Matthew Dillon,  All Rights Reserved.
  195. X
  196. X    Code containing one more copyrights is interpreted as meaning the code
  197. X    is based on previous copyrights and modifications based on subsequent
  198. X    copyrights.
  199. X
  200. X    Additional copyright messages may exist in source files and
  201. X    executables.
  202. X
  203. X    I appologize for any mistakes I have made, please contact me with any
  204. X    corrections at pacbell.pacbell.com!sorinc!overload!dillon or
  205. X
  206. X    Matthew Dillon
  207. X    891 Regal Rd.
  208. X    Berkeley, Ca. 94708
  209. X    USA
  210. X
  211. X    Questions pertaining to previous releases of UUCP and News060 which
  212. X    is in this release can be sent to:
  213. X
  214. X    William Loftus                   uucp:   wpl@burdvax.UUCP
  215. X    Unisys/Paoli Research Center           arpa:   wpl@prc.unisys.com
  216. X    PO Box 517                  Phone:  215-648-7248 (work)
  217. X    Paoli, PA 19301-0517                  215-354-0614 (home)
  218. X
  219. X
  220. X
  221. X    The below represents originators and major contributors.  Again,
  222. X    please correct me!
  223. X
  224. X    -    = so small it doesn't matter.
  225. X    ?    = I don't know
  226. X    JG    = John Gilmore
  227. X    WPL = William P. Loftus    prc.Unisys.COM!wpl
  228. X    MD    = Matthew Dillon    pacbell.pacbell.com!sorinc!overload
  229. X    PHL = Phil Lindsay
  230. X    CAS = Carolyn Scheppner
  231. X    AFI = Andy Finkel
  232. X    CMM = Chuck McManis
  233. X    CNB = Craig Norborg
  234. X
  235. X
  236. Xsrc/News060/rnews.c            WPL
  237. Xsrc/News060/Anews/anews.c        WPL
  238. Xsrc/News060/Anews/sendpacket.c        PHL CAS AFI
  239. Xsrc/News060/Anews/raw.c         CMM
  240. Xsrc/News060/Anews/mscan.c        JG WPL
  241. Xsrc/News060/Anews/DMakefile        MD
  242. Xsrc/News060/postnews.c            WPL
  243. Xsrc/News060/DMakefile            MD
  244. Xsrc/uuser/uuser.doc            MD
  245. Xsrc/uuser/misc.c            PHL MD
  246. Xsrc/uuser/DMakefile            -
  247. Xsrc/uuser/mountlist            -
  248. Xsrc/uuser/uuser.c            MD
  249. Xsrc/dmail/compat.c            MD
  250. Xsrc/dmail/DMakefile            -
  251. Xsrc/dmail/dmail.h            MD
  252. Xsrc/dmail/dmail.help            MD
  253. Xsrc/dmail/execom.h            MD
  254. Xsrc/dmail/commands.c            MD
  255. Xsrc/dmail/cond.c            MD
  256. Xsrc/dmail/dmkhelp.c            MD
  257. Xsrc/dmail/do_lists.c            MD
  258. Xsrc/dmail/execom.c            MD
  259. Xsrc/dmail/globals.c            MD
  260. Xsrc/dmail/help.c            MD
  261. Xsrc/dmail/load_mail.c            MD
  262. Xsrc/dmail/main.c            MD
  263. Xsrc/dmail/range.c            MD
  264. Xsrc/dmail/sendmail.c            MD
  265. Xsrc/dmail/set.c             MD
  266. Xsrc/dmail/sub.c             MD
  267. Xsrc/sendmail/DMakefile            -
  268. Xsrc/sendmail/sendmail.c         MD
  269. Xsrc/sendmail/parse.c            MD
  270. Xsrc/sendmail/domain.c            MD
  271. Xsrc/compress/compress.c         ?
  272. Xsrc/compress/tarsplit.c         ?
  273. Xsrc/compress/DMakefile            -
  274. Xsrc/compress/unshar.c            CNB
  275. Xsrc/compress/uudecode.c         ?
  276. Xsrc/compress/uuencode.c         ?
  277. Xsrc/GUtil/uident.c            MD
  278. Xsrc/GUtil/gnote.c            MD
  279. Xsrc/GUtil/uuserdump.c            MD
  280. Xsrc/GUtil/DMakefile            -
  281. Xsrc/MUtil/trimfile.c            MD
  282. Xsrc/MUtil/from.c            ?
  283. Xsrc/MUtil/man.c             ?
  284. Xsrc/MUtil/DMakefile            -
  285. Xsrc/MUtil/expandm.c            MD
  286. Xsrc/ReadMe                MD
  287. Xsrc/uucico/version.doc            -
  288. Xsrc/uucico/sysdep.c            JG WPL MD
  289. Xsrc/uucico/uucico.c            JG WPL MD
  290. Xsrc/uucico/DMakefile            -
  291. Xsrc/uucico/modem.h            WPL
  292. Xsrc/uucico/uuxqt.c            WPL
  293. Xsrc/uucico/uupoll.c            WPL
  294. Xsrc/uucico/uux.c            WPL
  295. Xsrc/uucico/gio.c            MD
  296. Xsrc/uucico/sysdep.h            WPL
  297. Xsrc/uucico/uuname.c            WPL
  298. Xsrc/uucico/includes.h            JG WPL MD
  299. Xsrc/uucico/uuhosts.c            WPL
  300. Xsrc/uucico/uucp.c            WPL
  301. Xsrc/uucico/uucp.h            JG WPL
  302. Xsrc/uucico/modem.c            MD
  303. Xsrc/include/log.h            MD
  304. Xsrc/include/tmpfile.h            MD
  305. Xsrc/include/config.h            MD
  306. Xsrc/include/pwd.h            MD
  307. Xsrc/include/sys/stat.h            MD
  308. Xsrc/include/sys/types.h         MD
  309. Xsrc/include/sys/file.h            MD
  310. Xsrc/include/sys/time.h            MD
  311. Xsrc/getty/getty.c            MD
  312. Xsrc/getty/syms.c            MD
  313. Xsrc/getty/passwd.c            MD
  314. Xsrc/getty/DMakefile            -
  315. Xsrc/lib/string.c            MD
  316. Xsrc/lib/getenv.c            MD
  317. Xsrc/lib/sleep.c             MD
  318. Xsrc/lib/security.c            MD
  319. Xsrc/lib/lsys.c                MD
  320. Xsrc/lib/mntreq.c            MD
  321. Xsrc/lib/log.c                MD
  322. Xsrc/lib/tmpfile.c            MD
  323. Xsrc/lib/seq.c                MD
  324. Xsrc/lib/config.c            MD
  325. Xsrc/lib/setstdin.c            MD
  326. Xsrc/lib/serialport.c            MD
  327. Xsrc/lib/DMakefile            -
  328. Xsrc/lib/getpwnam.c            MD
  329. Xsrc/lib/lockfile.c            MD
  330. Xsrc/lib/syms.c                MD
  331. Xsrc/lib/alias.c             MD
  332. Xsrc/lib/validuser.c            MD
  333. Xsrc/version.h
  334. Xsrc/TODO
  335. X
  336. X                VERSIONS
  337. X
  338. X1.02D
  339. X    stack warning in SlowSetup.DOC added (stack should be at least
  340. X    8192).    'Stack 8192' added to sample startup sequence.  RNews
  341. X    warning (RNews takes a huge amount of RAM currently) added.
  342. X
  343. X1.01D
  344. X    UUCP:LIB paths fixed to use UULIB:
  345. X
  346. X1.00D
  347. X    Initial Release 'D' series by Matthew Dillon, based on
  348. X    0.40, 0.50 and 0.60WPL series by William Loftus.
  349. X
  350. X0.60WPL
  351. X0.50WPL
  352. X0.40WPL
  353. X    UUCP release series for the Amiga by William Loftus, sub
  354. X    version changes not listed in this file.
  355. X
  356. X
  357. END_OF_FILE
  358. if test 7968 -ne `wc -c <'README.NOW'`; then
  359.     echo shar: \"'README.NOW'\" unpacked with wrong size!
  360. fi
  361. # end of 'README.NOW'
  362. fi
  363. if test ! -d 'devs' ; then
  364.     echo shar: Creating directory \"'devs'\"
  365.     mkdir 'devs'
  366. fi
  367. if test -f 'devs/.DistFiles' -a "${1}" != "-c" ; then 
  368.   echo shar: Will not clobber existing file \"'devs/.DistFiles'\"
  369. else
  370. echo shar: Extracting \"'devs/.DistFiles'\" \(30 characters\)
  371. sed "s/^X//" >'devs/.DistFiles' <<'END_OF_FILE'
  372. X
  373. Xroot:1.3/devs/serial.device
  374. X
  375. END_OF_FILE
  376. if test 30 -ne `wc -c <'devs/.DistFiles'`; then
  377.     echo shar: \"'devs/.DistFiles'\" unpacked with wrong size!
  378. fi
  379. # end of 'devs/.DistFiles'
  380. fi
  381. if test -f 'devs/Mountlist' -a "${1}" != "-c" ; then 
  382.   echo shar: Will not clobber existing file \"'devs/Mountlist'\"
  383. else
  384. echo shar: Extracting \"'devs/Mountlist'\" \(185 characters\)
  385. sed "s/^X//" >'devs/Mountlist' <<'END_OF_FILE'
  386. X
  387. XUUSER:       Handler = l:uuser-handler
  388. X       Stacksize = 6000
  389. X       Priority = 5
  390. X       GlobVec  = 1
  391. X#
  392. X
  393. XNULL:       Handler = l:null-handler
  394. X       Stacksize = 500
  395. X       Priority = 5
  396. X       GlobVec = 1
  397. X#
  398. X
  399. END_OF_FILE
  400. if test 185 -ne `wc -c <'devs/Mountlist'`; then
  401.     echo shar: \"'devs/Mountlist'\" unpacked with wrong size!
  402. fi
  403. # end of 'devs/Mountlist'
  404. fi
  405. if test ! -d 'lib' ; then
  406.     echo shar: Creating directory \"'lib'\"
  407.     mkdir 'lib'
  408. fi
  409. if test -f 'lib/.signature' -a "${1}" != "-c" ; then 
  410.   echo shar: Will not clobber existing file \"'lib/.signature'\"
  411. else
  412. echo shar: Extracting \"'lib/.signature'\" \(167 characters\)
  413. sed "s/^X//" >'lib/.signature' <<'END_OF_FILE'
  414. X
  415. X
  416. X
  417. X    Somebody Or Other        Path to get to you (always begin with a
  418. X    Your Address Maybe        fully domain'd machine).
  419. X
  420. X    Suggest you use only '!'s in your path.
  421. X
  422. END_OF_FILE
  423. if test 167 -ne `wc -c <'lib/.signature'`; then
  424.     echo shar: \"'lib/.signature'\" unpacked with wrong size!
  425. fi
  426. # end of 'lib/.signature'
  427. fi
  428. if test -f 'lib/Config' -a "${1}" != "-c" ; then 
  429.   echo shar: Will not clobber existing file \"'lib/Config'\"
  430. else
  431. echo shar: Extracting \"'lib/Config'\" \(255 characters\)
  432. sed "s/^X//" >'lib/Config' <<'END_OF_FILE'
  433. XNodeName      uucp
  434. XUserName      root
  435. XRealName      Foo The Bar
  436. XDebug          0
  437. XNewsFeed      newsnode
  438. XOrganization  Not an Organization
  439. XFilter          DMe
  440. XRFilter       DMe
  441. XMailEditor    DMe
  442. XDomainName    .UUCP
  443. XTimeZone      PST
  444. XDefaultNode   overload.UUCP
  445. X
  446. END_OF_FILE
  447. if test 255 -ne `wc -c <'lib/Config'`; then
  448.     echo shar: \"'lib/Config'\" unpacked with wrong size!
  449. fi
  450. # end of 'lib/Config'
  451. fi
  452. if test -f 'lib/Domain' -a "${1}" != "-c" ; then 
  453.   echo shar: Will not clobber existing file \"'lib/Domain'\"
  454. else
  455. echo shar: Extracting \"'lib/Domain'\" \(987 characters\)
  456. sed "s/^X//" >'lib/Domain' <<'END_OF_FILE'
  457. X
  458. X#   UULIB:Domain    Domain data base for mailer
  459. X#
  460. X#   Refer to MAN:Domains for information on how the domain file works
  461. X#   This file holds domain information for properly routing email when
  462. X#   you talk to several adjacent sites.  When you can talk to just a
  463. X#   single site this file should contain a single master default to
  464. X#   that site.
  465. X#
  466. X#   SAMPLE MULTI-SITE DOMAIN FILE, commented out.  If your UUCP
  467. X#   site connects to only one other site you do not need a Domain
  468. X#   file, simply set the 'DefaultNode' entry in UULIB:Config to
  469. X#   that site.
  470. X#
  471. X#   If you can talk UUCP to multiple other sites and wish to route
  472. X#   various domains to different sites you need to construct a Domain
  473. X#   file that looks something like that below.    The first entry, '*',
  474. X#   serves as a default and you do not need a 'DefaultNode' entry
  475. X#   in UULIB:Config.
  476. X#
  477. X#   Again, refer to the manual pages.
  478. X#
  479. X#*         MF UU     sorinc.UUCP
  480. X#*.EDU         MF UU     fubar.UUCP!buggy.CTS.COM
  481. X#*.COM         MF UU     chugly.UUCP
  482. X
  483. X
  484. END_OF_FILE
  485. if test 987 -ne `wc -c <'lib/Domain'`; then
  486.     echo shar: \"'lib/Domain'\" unpacked with wrong size!
  487. fi
  488. # end of 'lib/Domain'
  489. fi
  490. if test -f 'lib/Getty-header' -a "${1}" != "-c" ; then 
  491.   echo shar: Will not clobber existing file \"'lib/Getty-header'\"
  492. else
  493. echo shar: Extracting \"'lib/Getty-header'\" \(99 characters\)
  494. sed "s/^X//" >'lib/Getty-header' <<'END_OF_FILE'
  495. X
  496. X    This machine is currently a stupid UUCP node... the user hasn't
  497. X    followed the directions.
  498. X
  499. END_OF_FILE
  500. if test 99 -ne `wc -c <'lib/Getty-header'`; then
  501.     echo shar: \"'lib/Getty-header'\" unpacked with wrong size!
  502. fi
  503. # end of 'lib/Getty-header'
  504. fi
  505. if test -f 'lib/L.Sys' -a "${1}" != "-c" ; then 
  506.   echo shar: Will not clobber existing file \"'lib/L.Sys'\"
  507. else
  508. echo shar: Extracting \"'lib/L.Sys'\" \(497 characters\)
  509. sed "s/^X//" >'lib/L.Sys' <<'END_OF_FILE'
  510. X
  511. X# Examples....
  512. Xoverload Any SER: 2400 5255506 ogin: uucp sword: uupc
  513. Xcae780 Any SER: 2400 5555678 ogin: Udillon sword: barbbb
  514. Xspooge Any SER: 2400 5559012 ogin: uucp sword: catccc
  515. Xsorinc Any SER: 2400 5553456 ogin: uover sword: dogddd
  516. Xapple  Any SER: 2400 1,408,5557890 "" \d\r\c ogin: ovrdrive word: egoeee
  517. X
  518. X# Examples for simple testing
  519. Xuucp   Any SER: 1200 5555555 ogin: uucp sword: uupc
  520. Xtest1  Any SER: 1200 5555555 ogin: uucp sword: uupc
  521. Xtest2  Any SER: 1200 5555555 ogin: uucp sword: uupc
  522. X
  523. END_OF_FILE
  524. if test 497 -ne `wc -c <'lib/L.Sys'`; then
  525.     echo shar: \"'lib/L.Sys'\" unpacked with wrong size!
  526. fi
  527. # end of 'lib/L.Sys'
  528. fi
  529. if test -f 'lib/NewsGroups' -a "${1}" != "-c" ; then 
  530.   echo shar: Will not clobber existing file \"'lib/NewsGroups'\"
  531. else
  532. echo shar: Extracting \"'lib/NewsGroups'\" \(71 characters\)
  533. sed "s/^X//" >'lib/NewsGroups' <<'END_OF_FILE'
  534. Xcomp.sys.amiga
  535. Xcomp.sys.amiga.tech
  536. Xnews.admin
  537. Xrec.games.frp
  538. Xnews.misc
  539. X
  540. END_OF_FILE
  541. if test 71 -ne `wc -c <'lib/NewsGroups'`; then
  542.     echo shar: \"'lib/NewsGroups'\" unpacked with wrong size!
  543. fi
  544. # end of 'lib/NewsGroups'
  545. fi
  546. if test -f 'lib/Passwd' -a "${1}" != "-c" ; then 
  547.   echo shar: Will not clobber existing file \"'lib/Passwd'\"
  548. else
  549. echo shar: Extracting \"'lib/Passwd'\" \(600 characters\)
  550. sed "s/^X//" >'lib/Passwd' <<'END_OF_FILE'
  551. X
  552. X#   UUCP:LIB/PASSWD
  553. X#
  554. X#   User,Password,Uid,GroupId,(Finger-Info),Home-Dir,Command-To-Run
  555. X#                   name,
  556. X#   NOTE, if command-to-run is prefaced with a '*' Getty will open
  557. X#   the UUSER: device for stdin and stdout and a read-timeout of
  558. X#   1 second.
  559. X
  560. Xinfo,*,100,0,(Info Login),ram:,*uuserdump UULIB:Info-Text
  561. Xucae,aaa,200,0,(UUCP-CAE780),ram:,uucico
  562. Xukorn,bbb,201,0,(UUCP-KORN),ram:,uucico
  563. Xua500,ccc,202,0,(UUCP-A500),ram:,uucico
  564. Xuapple,eee,204,0,(UUCP-UAPPLE),ram:,uucico
  565. X
  566. X#   Dumb entry for testing (you may want to not have this in a real
  567. X#   system).
  568. Xuucp,uupc,203,0,(UUCP-DUMB),ram:,uucico
  569. X
  570. END_OF_FILE
  571. if test 600 -ne `wc -c <'lib/Passwd'`; then
  572.     echo shar: \"'lib/Passwd'\" unpacked with wrong size!
  573. fi
  574. # end of 'lib/Passwd'
  575. fi
  576. if test -f 'lib/Security' -a "${1}" != "-c" ; then 
  577.   echo shar: Will not clobber existing file \"'lib/Security'\"
  578. else
  579. echo shar: Extracting \"'lib/Security'\" \(369 characters\)
  580. sed "s/^X//" >'lib/Security' <<'END_OF_FILE'
  581. X
  582. X#   This file is used by UUCICO to determine the validity of requests.
  583. X#
  584. X#   The directories listed here are *allowed* directories for uucp
  585. X#   transfers.    The permissions field lists permissions
  586. X#            r    -readable
  587. X#            w    -writable
  588. X#
  589. X#   DO NOT PUT UUSPOOL: IN THIS LIST
  590. X
  591. X
  592. Xtmp:        rw
  593. Xuucp:c        r
  594. Xuucp:man    r
  595. XUUPUB:        rw
  596. Xdist:        r
  597. Xdist:uucp0  r
  598. Xdist:uucp1  r
  599. X
  600. END_OF_FILE
  601. if test 369 -ne `wc -c <'lib/Security'`; then
  602.     echo shar: \"'lib/Security'\" unpacked with wrong size!
  603. fi
  604. # end of 'lib/Security'
  605. fi
  606. if test -f 'lib/SeqNews' -a "${1}" != "-c" ; then 
  607.   echo shar: Will not clobber existing file \"'lib/SeqNews'\"
  608. else
  609. echo shar: Extracting \"'lib/SeqNews'\" \(3 characters\)
  610. sed "s/^X//" >'lib/SeqNews' <<'END_OF_FILE'
  611. X38
  612. END_OF_FILE
  613. if test 3 -ne `wc -c <'lib/SeqNews'`; then
  614.     echo shar: \"'lib/SeqNews'\" unpacked with wrong size!
  615. fi
  616. # end of 'lib/SeqNews'
  617. fi
  618. if test -f 'lib/news.distribution' -a "${1}" != "-c" ; then 
  619.   echo shar: Will not clobber existing file \"'lib/news.distribution'\"
  620. else
  621. echo shar: Extracting \"'lib/news.distribution'\" \(164 characters\)
  622. sed "s/^X//" >'lib/news.distribution' <<'END_OF_FILE'
  623. Xpa       Pennsylvania
  624. Xnj       New Jersey
  625. Xny       New York
  626. Xusa      United States
  627. Xna       North America
  628. Xworld    Everywhere on Usenet in the world (same as net)
  629. X
  630. END_OF_FILE
  631. if test 164 -ne `wc -c <'lib/news.distribution'`; then
  632.     echo shar: \"'lib/news.distribution'\" unpacked with wrong size!
  633. fi
  634. # end of 'lib/news.distribution'
  635. fi
  636. if test -f 'lib/seq' -a "${1}" != "-c" ; then 
  637.   echo shar: Will not clobber existing file \"'lib/seq'\"
  638. else
  639. echo shar: Extracting \"'lib/seq'\" \(4 characters\)
  640. sed "s/^X//" >'lib/seq' <<'END_OF_FILE'
  641. X1996END_OF_FILE
  642. if test 4 -ne `wc -c <'lib/seq'`; then
  643.     echo shar: \"'lib/seq'\" unpacked with wrong size!
  644. fi
  645. # end of 'lib/seq'
  646. fi
  647. if test ! -d 'man' ; then
  648.     echo shar: Creating directory \"'man'\"
  649.     mkdir 'man'
  650. fi
  651. if test -f 'man/.Distfiles' -a "${1}" != "-c" ; then 
  652.   echo shar: Will not clobber existing file \"'man/.Distfiles'\"
  653. else
  654. echo shar: Extracting \"'man/.Distfiles'\" \(22 characters\)
  655. sed "s/^X//" >'man/.Distfiles' <<'END_OF_FILE'
  656. X
  657. Xsrc:dme/doc/dme.doc
  658. X
  659. END_OF_FILE
  660. if test 22 -ne `wc -c <'man/.Distfiles'`; then
  661.     echo shar: \"'man/.Distfiles'\" unpacked with wrong size!
  662. fi
  663. # end of 'man/.Distfiles'
  664. fi
  665. if test -f 'man/Config' -a "${1}" != "-c" ; then 
  666.   echo shar: Will not clobber existing file \"'man/Config'\"
  667. else
  668. echo shar: Extracting \"'man/Config'\" \(62 characters\)
  669. sed "s/^X//" >'man/Config' <<'END_OF_FILE'
  670. X
  671. X    See 'Assigns' for information on the UULIB:Config file.
  672. X
  673. END_OF_FILE
  674. if test 62 -ne `wc -c <'man/Config'`; then
  675.     echo shar: \"'man/Config'\" unpacked with wrong size!
  676. fi
  677. # end of 'man/Config'
  678. fi
  679. if test -f 'man/From' -a "${1}" != "-c" ; then 
  680.   echo shar: Will not clobber existing file \"'man/From'\"
  681. else
  682. echo shar: Extracting \"'man/From'\" \(380 characters\)
  683. sed "s/^X//" >'man/From' <<'END_OF_FILE'
  684. X
  685. XNAME
  686. X     FROM - list all mail in the users mailbox
  687. X
  688. XSYNTAX
  689. X     From [user/file]
  690. X
  691. XDESCRIPTION
  692. X    the From program prints out the From: and Subject: fields of
  693. X    received mail.  If no user/file is specified the UserName
  694. X    UULIB:Config entry is used.
  695. X
  696. X    Multiple files may be specified.
  697. X
  698. X    From attempts to pick out the real name of the sender from the
  699. X    From: field.
  700. X
  701. X
  702. END_OF_FILE
  703. if test 380 -ne `wc -c <'man/From'`; then
  704.     echo shar: \"'man/From'\" unpacked with wrong size!
  705. fi
  706. # end of 'man/From'
  707. fi
  708. if test -f 'man/MapExample' -a "${1}" != "-c" ; then 
  709.   echo shar: Will not clobber existing file \"'man/MapExample'\"
  710. else
  711. echo shar: Extracting \"'man/MapExample'\" \(749 characters\)
  712. sed "s/^X//" >'man/MapExample' <<'END_OF_FILE'
  713. XFrom: cbmvax!njin.rutgers.edu!dpz (David P. Zimmerman)
  714. XSubject: ACK for heimat UUCP map
  715. XTo: heimat!sneakers
  716. XDate: Sun, 17 Jul 88 23:37:50 EDT
  717. X
  718. XYour "heimat" UUCP map has been entered into the UUCP map database.
  719. XHowever, I had to clean it up a bit.  Here is your revised entry.
  720. X
  721. X                service with a :-),
  722. X
  723. X                    David P. Zimmerman
  724. X                    PA Regional Coordinator
  725. X                    The UUCP Mapping Project
  726. X
  727. X#N    heimat
  728. X#S    Commodore-AMIGA; Amiga-DOS V1.3 & Amiga-UUCP V0.30
  729. X#O    Sneakers Computing
  730. X#C    Dan Schein
  731. X#E    heimat!sneakers
  732. X#T    +1 215 678 7691
  733. X#P    2455 McKinley Ave, West Lawn, PA 19609
  734. X#L
  735. X#R    This is a test site for the development of Amiga-UUCP & UseNet software.
  736. X#U
  737. X#W    heimat!sneakers (Dan "Sneakers" Schein); Wed Jul 11 20:38:16 EST 1988
  738. X#
  739. Xheimat    cbmvax(DEMAND)
  740. X
  741. X
  742. X
  743. END_OF_FILE
  744. if test 749 -ne `wc -c <'man/MapExample'`; then
  745.     echo shar: \"'man/MapExample'\" unpacked with wrong size!
  746. fi
  747. # end of 'man/MapExample'
  748. fi
  749. if test -f 'man/NULL' -a "${1}" != "-c" ; then 
  750.   echo shar: Will not clobber existing file \"'man/NULL'\"
  751. else
  752. echo shar: Extracting \"'man/NULL'\" \(572 characters\)
  753. sed "s/^X//" >'man/NULL' <<'END_OF_FILE'
  754. X
  755. XNAME
  756. X    NULL:
  757. X
  758. XSYNOPSIS
  759. X    Mount NULL:
  760. X
  761. XDESCRIPTION
  762. X    the NULL: device is a dos handler designed to allow programs
  763. X    such as DCron, DMe, etc... to run other programs in the
  764. X    background while still allowing the user to close the CLI
  765. X    window these programs were originally backgrounded on.
  766. X
  767. X    NULL: Requires L:Handler and a proper mountlist entry:
  768. X
  769. XNULL:    Handler = root:L/null-handler
  770. X    Stacksize = 1024
  771. X    Priority = 5
  772. X    GlobVec = 1
  773. X#
  774. X
  775. X    Getty also uses NULL:.    You normally Mount NULL: in your
  776. X    startup-sequence.
  777. X
  778. X
  779. XFILES/REQUIRES
  780. X    L:Null-Handler
  781. X    DEVS:Mountlist
  782. X
  783. XREFERENCES
  784. X    Getty
  785. X
  786. X
  787. X
  788. END_OF_FILE
  789. if test 572 -ne `wc -c <'man/NULL'`; then
  790.     echo shar: \"'man/NULL'\" unpacked with wrong size!
  791. fi
  792. # end of 'man/NULL'
  793. fi
  794. if test -f 'man/PhoneBook' -a "${1}" != "-c" ; then 
  795.   echo shar: Will not clobber existing file \"'man/PhoneBook'\"
  796. else
  797. echo shar: Extracting \"'man/PhoneBook'\" \(320 characters\)
  798. sed "s/^X//" >'man/PhoneBook' <<'END_OF_FILE'
  799. X
  800. X  Matthew Dillon
  801. X  891 Regal Rd.
  802. X  Berkeley, Ca. 94708
  803. X
  804. X    uucp:    pacbell.pacbell.com!sorinc!overload!dillon
  805. X
  806. X  William Loftus                 uucp:   wpl@burdvax.UUCP
  807. X  Unisys/Paoli Research Center             arpa:   wpl@prc.unisys.com
  808. X  PO Box 517                    Phone:  215-648-7248 (work)
  809. X  Paoli, PA 19301-0517                    215-354-0614 (home)
  810. X
  811. END_OF_FILE
  812. if test 320 -ne `wc -c <'man/PhoneBook'`; then
  813.     echo shar: \"'man/PhoneBook'\" unpacked with wrong size!
  814. fi
  815. # end of 'man/PhoneBook'
  816. fi
  817. if test -f 'man/Rmail' -a "${1}" != "-c" ; then 
  818.   echo shar: Will not clobber existing file \"'man/Rmail'\"
  819. else
  820. echo shar: Extracting \"'man/Rmail'\" \(314 characters\)
  821. sed "s/^X//" >'man/Rmail' <<'END_OF_FILE'
  822. X
  823. XNAME
  824. X     rmail - route mail to users on remote systems
  825. X
  826. XSYNTAX
  827. X     rmail user...
  828. X
  829. XDESCRIPTION
  830. X     The rmail command interprets incoming mail received via
  831. X     uucp, and passing the processed mail on to the required
  832. X     program(s)
  833. X
  834. X     The rmail is explicitly designed for use with uucp and send-
  835. X     mail.
  836. X
  837. END_OF_FILE
  838. if test 314 -ne `wc -c <'man/Rmail'`; then
  839.     echo shar: \"'man/Rmail'\" unpacked with wrong size!
  840. fi
  841. # end of 'man/Rmail'
  842. fi
  843. if test -f 'man/TrimFile' -a "${1}" != "-c" ; then 
  844.   echo shar: Will not clobber existing file \"'man/TrimFile'\"
  845. else
  846. echo shar: Extracting \"'man/TrimFile'\" \(403 characters\)
  847. sed "s/^X//" >'man/TrimFile' <<'END_OF_FILE'
  848. X
  849. XNAME
  850. X    TrimFile
  851. X
  852. XSYNOPSIS
  853. X    TrimFile    file1 file2 ... fileN [-N]
  854. X
  855. XDESCRIPTION
  856. X    TRIMFILE trims the specified files to N lines each.  If no
  857. X    -N argument is given the files are trimmed to 100 lines each.
  858. X
  859. X    The last N lines of the file are kept.    Each line may be up
  860. X    to 256 characters long.
  861. X
  862. X    TRIMFILE currently allocates memory to hold the lines and so
  863. X    should not be used with large numeric arguments.
  864. X
  865. X
  866. END_OF_FILE
  867. if test 403 -ne `wc -c <'man/TrimFile'`; then
  868.     echo shar: \"'man/TrimFile'\" unpacked with wrong size!
  869. fi
  870. # end of 'man/TrimFile'
  871. fi
  872. if test -f 'man/expandm' -a "${1}" != "-c" ; then 
  873.   echo shar: Will not clobber existing file \"'man/expandm'\"
  874. else
  875. echo shar: Extracting \"'man/expandm'\" \(193 characters\)
  876. sed "s/^X//" >'man/expandm' <<'END_OF_FILE'
  877. X
  878. XNAME
  879. X    Expandm
  880. X
  881. XSYNOPSIS
  882. X    Expandm alias1 alias2 ... aliasN
  883. X
  884. XDESCRIPTION
  885. X    This program expands the specified aliases and displays
  886. X    the results.
  887. X
  888. XFILES
  889. X    UULIB:Aliases
  890. X
  891. XREFERENCES
  892. X    MAN:Aliases
  893. X
  894. X
  895. X
  896. END_OF_FILE
  897. if test 193 -ne `wc -c <'man/expandm'`; then
  898.     echo shar: \"'man/expandm'\" unpacked with wrong size!
  899. fi
  900. # end of 'man/expandm'
  901. fi
  902. if test ! -d 's' ; then
  903.     echo shar: Creating directory \"'s'\"
  904.     mkdir 's'
  905. fi
  906. if test -f 's/.DistFiles' -a "${1}" != "-c" ; then 
  907.   echo shar: Will not clobber existing file \"'s/.DistFiles'\"
  908. else
  909. echo shar: Extracting \"'s/.DistFiles'\" \(9 characters\)
  910. sed "s/^X//" >'s/.DistFiles' <<'END_OF_FILE'
  911. X
  912. Xs:.edrc
  913. END_OF_FILE
  914. if test 9 -ne `wc -c <'s/.DistFiles'`; then
  915.     echo shar: \"'s/.DistFiles'\" unpacked with wrong size!
  916. fi
  917. # end of 's/.DistFiles'
  918. fi
  919. if test -f 's/crontab' -a "${1}" != "-c" ; then 
  920.   echo shar: Will not clobber existing file \"'s/crontab'\"
  921. else
  922. echo shar: Extracting \"'s/crontab'\" \(471 characters\)
  923. sed "s/^X//" >'s/crontab' <<'END_OF_FILE'
  924. X
  925. X#   S:CRONTAB
  926. X#
  927. X#min    hr    day    mon    dow    command
  928. X
  929. X#   adjust time every 24 hours.. keep us in line
  930. X#0     0     *     *     *     dhb:altc/mousetime
  931. X
  932. X#   Disable modem speaker while I'm asleep
  933. X
  934. X0    23    *    *    *    getty -m0
  935. X0    11    *    *    *    getty -m1
  936. X
  937. X#   run UUCP nightly to various sites.
  938. X#
  939. X#0     3     *     *     *     uucp:c/uucico -scae780
  940. X#0     6     *     *     *     uucp:c/uucico -ssorinc
  941. X
  942. X#   trim log files at 8a.m. so they do not get too big.
  943. X0    8    *    *    *    uucp:c/trimfile uuspool:logfile getty:logfile tmp:dcron.log -100
  944. X
  945. X
  946. END_OF_FILE
  947. if test 471 -ne `wc -c <'s/crontab'`; then
  948.     echo shar: \"'s/crontab'\" unpacked with wrong size!
  949. fi
  950. # end of 's/crontab'
  951. fi
  952. if test -f 's/startup-sequence' -a "${1}" != "-c" ; then 
  953.   echo shar: Will not clobber existing file \"'s/startup-sequence'\"
  954. else
  955. echo shar: Extracting \"'s/startup-sequence'\" \(872 characters\)
  956. sed "s/^X//" >'s/startup-sequence' <<'END_OF_FILE'
  957. X
  958. X;   Standalone Startup Sequence for UUCP
  959. X;
  960. X;   no-frills startup-sequence.
  961. X
  962. Xsystem/Assign c: system
  963. Xsystem/path reset c
  964. Xresident c:Assign
  965. Xresident c:Wait
  966. X
  967. X; Need 8192 for all UUCP programs
  968. Xstack 8192
  969. XAddbuffers df0: 10
  970. X
  971. XAssign UUCP:    :
  972. XAssign t:   ram:
  973. X
  974. X; NORMALLY YOU DO NOT ASSIGN SPOOL, MAIL, AND NEWS TO VOLTILE STORAGE!
  975. X; THIS IS A SAMPLE STARTUP
  976. X;
  977. X; TMP: is used by DCron
  978. X
  979. XAssign TMP:        ram:
  980. XAssign ENV:        ram:
  981. XAssign UUSPOOL:     ram:
  982. XAssign UULIB:        UUCP:Lib
  983. XAssign UUMAIL:        ram:
  984. XAssign UUNEWS:        ram:
  985. X; UUPUB*: normally not temporary storage either.
  986. XAssign UUPUB:        ram:
  987. XAssign UUPUBW:        UUCP:Pub
  988. XAssign Getty:        UUCP:Lib
  989. X
  990. X; Note, contains only dmail.help on the first distribution floppy
  991. X; required for online help
  992. XAssign Man:        UUCP:man
  993. X
  994. Xmount null:
  995. Xmount uuser:
  996. X
  997. Xrun <nil: >nil: Getty -B1200 -Mh -7
  998. Xwait 4
  999. Xrun <nil: >nil: dcron T:dcron.log
  1000. X
  1001. END_OF_FILE
  1002. if test 872 -ne `wc -c <'s/startup-sequence'`; then
  1003.     echo shar: \"'s/startup-sequence'\" unpacked with wrong size!
  1004. fi
  1005. # end of 's/startup-sequence'
  1006. fi
  1007. if test ! -d 'src' ; then
  1008.     echo shar: Creating directory \"'src'\"
  1009.     mkdir 'src'
  1010. fi
  1011. if test -f 'src/.Distfiles' -a "${1}" != "-c" ; then 
  1012.   echo shar: Will not clobber existing file \"'src/.Distfiles'\"
  1013. else
  1014. echo shar: Extracting \"'src/.Distfiles'\" \(9 characters\)
  1015. sed "s/^X//" >'src/.Distfiles' <<'END_OF_FILE'
  1016. Xsrc:dbbs
  1017. END_OF_FILE
  1018. if test 9 -ne `wc -c <'src/.Distfiles'`; then
  1019.     echo shar: \"'src/.Distfiles'\" unpacked with wrong size!
  1020. fi
  1021. # end of 'src/.Distfiles'
  1022. fi
  1023. if test ! -d 'src/GUtil' ; then
  1024.     echo shar: Creating directory \"'src/GUtil'\"
  1025.     mkdir 'src/GUtil'
  1026. fi
  1027. if test -f 'src/GUtil/DMakefile' -a "${1}" != "-c" ; then 
  1028.   echo shar: Will not clobber existing file \"'src/GUtil/DMakefile'\"
  1029. else
  1030. echo shar: Extracting \"'src/GUtil/DMakefile'\" \(676 characters\)
  1031. sed "s/^X//" >'src/GUtil/DMakefile' <<'END_OF_FILE'
  1032. X
  1033. X#   DMakefile
  1034. X#
  1035. X#   (C) Copyright 1989-1990 by Matthew Dillon,  All Rights Reserved.
  1036. X#
  1037. X
  1038. XOD=   ltmp:uucp/
  1039. XSYMS= uucp:src/lib/all.m
  1040. XSRCS= uuserdump.c uident.c gnote.c
  1041. XOBJS= $(SRCS:"*.c":"$(OD)*.o")
  1042. XCFLAGS= -iuucp:src/include/ -cq -v
  1043. XEXE= uucp:c/
  1044. XLIBS= uucp:src/lib/uucp.lib lib:lc.lib lib:amiga.lib
  1045. X
  1046. Xall: $(EXE)uuserdump $(EXE)uident $(EXE)gnote
  1047. X
  1048. X$(EXE)uuserdump: $(OD)uuserdump.o
  1049. X    blink from lib:cres.o %(right) TO %(left) lib $(LIBS)
  1050. X
  1051. X$(EXE)uident: $(OD)uident.o
  1052. X    blink from lib:cres.o %(right) TO %(left) lib $(LIBS)
  1053. X
  1054. X$(EXE)gnote: $(OD)gnote.o
  1055. X    blink from lib:cres.o %(right) TO %(left) lib $(LIBS)
  1056. X
  1057. X$(OBJS) : $(SRCS)
  1058. X    lc $(CFLAGS) -H$(SYMS) -o%(left) %(right)
  1059. X
  1060. END_OF_FILE
  1061. if test 676 -ne `wc -c <'src/GUtil/DMakefile'`; then
  1062.     echo shar: \"'src/GUtil/DMakefile'\" unpacked with wrong size!
  1063. fi
  1064. # end of 'src/GUtil/DMakefile'
  1065. fi
  1066. if test -f 'src/GUtil/uident.c' -a "${1}" != "-c" ; then 
  1067.   echo shar: Will not clobber existing file \"'src/GUtil/uident.c'\"
  1068. else
  1069. echo shar: Extracting \"'src/GUtil/uident.c'\" \(925 characters\)
  1070. sed "s/^X//" >'src/GUtil/uident.c' <<'END_OF_FILE'
  1071. X
  1072. X/*
  1073. X *  UIDENT.C
  1074. X *
  1075. X *  (C) Copyright 1989-1990 by Matthew Dillon,  All Rights Reserved.
  1076. X *
  1077. X *  UIDENT files...
  1078. X *
  1079. X *  Searches for @($) <string> \0 and prints out
  1080. X */
  1081. X
  1082. X#include <stdio.h>
  1083. X#include <fcntl.h>
  1084. X#include "/version.h"
  1085. X
  1086. XIDENT(".01");
  1087. X
  1088. Xvoid FindIdent();
  1089. X
  1090. Xchar Buf[8192];
  1091. X
  1092. Xvoid
  1093. Xmain(ac, av)
  1094. Xchar **av;
  1095. X{
  1096. X    short i;
  1097. X    int fd;
  1098. X
  1099. X    for (i = 1; i < ac; ++i) {
  1100. X    printf("%-15s ", av[i]);
  1101. X    fd = open(av[i], O_RDONLY);
  1102. X    if (fd > 0)
  1103. X        FindIdent(fd);
  1104. X    else
  1105. X        printf("(unable to open)");
  1106. X    puts("");
  1107. X    fflush(stdout);
  1108. X    if (fd > 0)
  1109. X        close(fd);
  1110. X    }
  1111. X}
  1112. X
  1113. Xvoid
  1114. XFindIdent(fd)
  1115. Xint fd;
  1116. X{
  1117. X    long n;
  1118. X    long i;
  1119. X    long x = 0;
  1120. X
  1121. X    while ((n = read(fd, Buf + x, sizeof(Buf) - x)) > 0) {
  1122. X    n += x;
  1123. X    for (i = n - 128; i >= 0; --i) {
  1124. X        if (Buf[i] == '@' && Buf[i+1] == '(' && Buf[i+2] == '$' && Buf[i+3] == ')') {
  1125. X        printf("%s", Buf + i);
  1126. X        }
  1127. X    }
  1128. X    x = 128;
  1129. X    if (n < x)
  1130. X        x = n;
  1131. X    movmem(Buf + n - x, Buf, x);
  1132. X    }
  1133. X}
  1134. X
  1135. END_OF_FILE
  1136. if test 925 -ne `wc -c <'src/GUtil/uident.c'`; then
  1137.     echo shar: \"'src/GUtil/uident.c'\" unpacked with wrong size!
  1138. fi
  1139. # end of 'src/GUtil/uident.c'
  1140. fi
  1141. if test ! -d 'src/MUtil' ; then
  1142.     echo shar: Creating directory \"'src/MUtil'\"
  1143.     mkdir 'src/MUtil'
  1144. fi
  1145. if test -f 'src/MUtil/DMakefile' -a "${1}" != "-c" ; then 
  1146.   echo shar: Will not clobber existing file \"'src/MUtil/DMakefile'\"
  1147. else
  1148. echo shar: Extracting \"'src/MUtil/DMakefile'\" \(579 characters\)
  1149. sed "s/^X//" >'src/MUtil/DMakefile' <<'END_OF_FILE'
  1150. X
  1151. XOD=ltmp:uucp/
  1152. XSRCS= from.c man.c expandm.c trimfile.c
  1153. XOBJS= $(SRCS:"*.c":"$(OD)*.o")
  1154. XSYMS= uucp:src/lib/all.m
  1155. XCFLAGS= -iuucp:src/include/ -cq -v
  1156. XEXE= uucp:c/
  1157. XLIBS= uucp:src/lib/uucp.lib lib:lc.lib lib:amiga.lib
  1158. X
  1159. XBLINK= blink from lib:cres.o %(right) TO %(left) SC SD LIB $(LIBS)
  1160. X
  1161. Xall: $(EXE)expand $(EXE)from $(EXE)man $(EXE)expandm $(EXE)trimfile
  1162. X
  1163. X$(EXE)trimfile: $(OD)trimfile.o
  1164. X    $(BLINK)
  1165. X
  1166. X$(EXE)expandm: $(OD)expandm.o
  1167. X    $(BLINK)
  1168. X
  1169. X$(EXE)from: $(OD)from.o
  1170. X    $(BLINK)
  1171. X
  1172. X$(EXE)man: $(OD)man.o
  1173. X    $(BLINK)
  1174. X
  1175. X$(OBJS) : $(SRCS)
  1176. X    lc $(CFLAGS) -H$(SYMS) -o%(left) %(right)
  1177. X
  1178. END_OF_FILE
  1179. if test 579 -ne `wc -c <'src/MUtil/DMakefile'`; then
  1180.     echo shar: \"'src/MUtil/DMakefile'\" unpacked with wrong size!
  1181. fi
  1182. # end of 'src/MUtil/DMakefile'
  1183. fi
  1184. if test -f 'src/MUtil/expandm.c' -a "${1}" != "-c" ; then 
  1185.   echo shar: Will not clobber existing file \"'src/MUtil/expandm.c'\"
  1186. else
  1187. echo shar: Extracting \"'src/MUtil/expandm.c'\" \(432 characters\)
  1188. sed "s/^X//" >'src/MUtil/expandm.c' <<'END_OF_FILE'
  1189. X
  1190. X/*
  1191. X *  EXPANDM.C        expands alias via uulib:Aliases and prints
  1192. X *            results
  1193. X *
  1194. X *  (C) Copyright 1989-1990 by Matthew Dillon,  All Rights Reserved.
  1195. X *
  1196. X *  EXPANDM alias
  1197. X */
  1198. X
  1199. Xmain(ac, av)
  1200. Xchar *av[];
  1201. X{
  1202. X    short i;
  1203. X    void callBack();
  1204. X
  1205. X    LoadAliases();
  1206. X    for (i = 1; i < ac; ++i) {
  1207. X    printf("%s:", av[i]);
  1208. X    UserAliasList(av[i], callBack);
  1209. X    }
  1210. X    puts("");
  1211. X}
  1212. X
  1213. Xvoid
  1214. XcallBack(name)
  1215. Xchar *name;
  1216. X{
  1217. X    printf(" %s", name);
  1218. X}
  1219. X
  1220. END_OF_FILE
  1221. if test 432 -ne `wc -c <'src/MUtil/expandm.c'`; then
  1222.     echo shar: \"'src/MUtil/expandm.c'\" unpacked with wrong size!
  1223. fi
  1224. # end of 'src/MUtil/expandm.c'
  1225. fi
  1226. if test ! -d 'src/News060' ; then
  1227.     echo shar: Creating directory \"'src/News060'\"
  1228.     mkdir 'src/News060'
  1229. fi
  1230. if test ! -d 'src/News060/Anews' ; then
  1231.     echo shar: Creating directory \"'src/News060/Anews'\"
  1232.     mkdir 'src/News060/Anews'
  1233. fi
  1234. if test -f 'src/News060/Anews/DMakefile' -a "${1}" != "-c" ; then 
  1235.   echo shar: Will not clobber existing file \"'src/News060/Anews/DMakefile'\"
  1236. else
  1237. echo shar: Extracting \"'src/News060/Anews/DMakefile'\" \(477 characters\)
  1238. sed "s/^X//" >'src/News060/Anews/DMakefile' <<'END_OF_FILE'
  1239. X
  1240. X#   DMakefile for news
  1241. X#   (C) Copyright 1989-1990 by Matthew Dillon,  All Rights Reserved.
  1242. X#
  1243. X
  1244. XOD=ltmp:uucp/anews/
  1245. XSRCS= anews.c mscan.c raw.c sendpacket.c
  1246. XOBJS= $(SRCS:"*.c":"$(OD)*.o")
  1247. XSYMS= uucp:src/lib/all.m
  1248. XCFLAGS= -iuucp:src/include/ -cq -v -b0
  1249. XEXE= uucp:c/anews
  1250. XLIBS= uucp:src/lib/uucp.lib lib:lc.lib lib:amiga.lib
  1251. X
  1252. Xall: $(EXE)
  1253. X
  1254. X$(EXE) : $(OBJS)
  1255. X    blink from lib:c.o %(right) to %(left) lib $(LIBS)
  1256. X
  1257. X$(OBJS) : $(SRCS)
  1258. X    lc $(CFLAGS) -H$(SYMS) -o%(left) %(right)
  1259. X
  1260. X
  1261. X
  1262. END_OF_FILE
  1263. if test 477 -ne `wc -c <'src/News060/Anews/DMakefile'`; then
  1264.     echo shar: \"'src/News060/Anews/DMakefile'\" unpacked with wrong size!
  1265. fi
  1266. # end of 'src/News060/Anews/DMakefile'
  1267. fi
  1268. if test -f 'src/News060/DMakefile' -a "${1}" != "-c" ; then 
  1269.   echo shar: Will not clobber existing file \"'src/News060/DMakefile'\"
  1270. else
  1271. echo shar: Extracting \"'src/News060/DMakefile'\" \(567 characters\)
  1272. sed "s/^X//" >'src/News060/DMakefile' <<'END_OF_FILE'
  1273. X
  1274. X#   DMakefile for news
  1275. X#
  1276. X#   (C) Copyright 1989-1990 by Matthew Dillon,  All Rights Reserved.
  1277. X#
  1278. X
  1279. XOD=ltmp:uucp/
  1280. XSRCS= rnews.c PostNews.c
  1281. XOBJS= $(SRCS:"*.c":"$(OD)*.o")
  1282. XSYMS= uucp:src/lib/all.m
  1283. XCFLAGS= -iuucp:src/include/ -cq -v -b0
  1284. XEXE= uucp:c/
  1285. XLIBS= uucp:src/lib/uucp.lib lib:lc.lib lib:amiga.lib
  1286. X
  1287. Xall: $(EXE)rnews $(EXE)PostNews
  1288. X
  1289. X$(EXE)rnews: $(OD)rnews.o
  1290. X    blink from lib:c.o %(right) to %(left) lib $(LIBS)
  1291. X
  1292. X$(EXE)PostNews: $(OD)PostNews.o
  1293. X    blink from lib:c.o %(right) to %(left) lib $(LIBS)
  1294. X
  1295. X$(OBJS) : $(SRCS)
  1296. X    lc $(CFLAGS) -H$(SYMS) -o%(left) %(right)
  1297. X
  1298. END_OF_FILE
  1299. if test 567 -ne `wc -c <'src/News060/DMakefile'`; then
  1300.     echo shar: \"'src/News060/DMakefile'\" unpacked with wrong size!
  1301. fi
  1302. # end of 'src/News060/DMakefile'
  1303. fi
  1304. if test -f 'src/ReadMe' -a "${1}" != "-c" ; then 
  1305.   echo shar: Will not clobber existing file \"'src/ReadMe'\"
  1306. else
  1307. echo shar: Extracting \"'src/ReadMe'\" \(811 characters\)
  1308. sed "s/^X//" >'src/ReadMe' <<'END_OF_FILE'
  1309. X
  1310. X    To compile:
  1311. X
  1312. X    * You must have Lattice C 5.02 or greater (you might have to get rid
  1313. X      of the -cq option if you have <5.03.99)
  1314. X
  1315. X    * Should compile under the new Manx C by fixing up the DMakefiles
  1316. X      but I haven't had time to try yet.
  1317. X
  1318. X    * The dmake executable is required (should be in UUCP:C)
  1319. X
  1320. X    * Object directories:  (I normally put these on a different
  1321. X      partition on my HD).  Holds .O files and symbol table.
  1322. X
  1323. X    Assign LTMP: <some-place-to-hold-objs>
  1324. X
  1325. X    MakeDir LTMP:uucp
  1326. X    MakeDir LTMP:uucp/lib
  1327. X    MakeDir LTMP:uucp/anews
  1328. X    MakeDir LTMP:dmail
  1329. X
  1330. X    * Make the link library and symbol table
  1331. X
  1332. X    1> cd lib
  1333. X    1> dmake
  1334. X
  1335. X    * Make the remaining executables by CDing into the appropriate
  1336. X      source directory and typing 'dmake'.  Executables will be
  1337. X      placed in uucp:c
  1338. X
  1339. END_OF_FILE
  1340. if test 811 -ne `wc -c <'src/ReadMe'`; then
  1341.     echo shar: \"'src/ReadMe'\" unpacked with wrong size!
  1342. fi
  1343. # end of 'src/ReadMe'
  1344. fi
  1345. if test -f 'src/TODO' -a "${1}" != "-c" ; then 
  1346.   echo shar: Will not clobber existing file \"'src/TODO'\"
  1347. else
  1348. echo shar: Extracting \"'src/TODO'\" \(559 characters\)
  1349. sed "s/^X//" >'src/TODO' <<'END_OF_FILE'
  1350. X
  1351. X    sendmail: sort the To: list and remove duplicates due to aliases
  1352. X    sendmail: return erronous email to sender... Mailer-Daemon
  1353. X    sendmail: too-many-hops
  1354. X    sendmail: mail for this node... i.e. user says 'name@thisnode'
  1355. X          instead of just 'name'.. currently generates X.
  1356. X          files but sendmail does not (should not!) run uuxqt!
  1357. X
  1358. X    aliases:  rnews via alias        mail based news
  1359. X    aliases:  postnews via alias    mail based news
  1360. X
  1361. X    aliases:  it is possible to get into a stack loop when
  1362. X          using the <file feature in the Aliases file.
  1363. X
  1364. END_OF_FILE
  1365. if test 559 -ne `wc -c <'src/TODO'`; then
  1366.     echo shar: \"'src/TODO'\" unpacked with wrong size!
  1367. fi
  1368. # end of 'src/TODO'
  1369. fi
  1370. if test ! -d 'src/compress' ; then
  1371.     echo shar: Creating directory \"'src/compress'\"
  1372.     mkdir 'src/compress'
  1373. fi
  1374. if test -f 'src/compress/DMakefile' -a "${1}" != "-c" ; then 
  1375.   echo shar: Will not clobber existing file \"'src/compress/DMakefile'\"
  1376. else
  1377. echo shar: Extracting \"'src/compress/DMakefile'\" \(938 characters\)
  1378. sed "s/^X//" >'src/compress/DMakefile' <<'END_OF_FILE'
  1379. X
  1380. XOD=ltmp:uucp/
  1381. XSRCS= compress.c tarsplit.c unshar.c uudecode.c uuencode.c
  1382. XOBJS= $(SRCS:"*.c":"$(OD)*.o")
  1383. XSYMS= uucp:src/lib/all.m
  1384. XCFLAGS= -iuucp:src/include/ -cq -v
  1385. XCFLAGS_LD= $(CFLAGS) -b0
  1386. XEXE= uucp:c/
  1387. XLIBS= uucp:src/lib/uucp.lib lib:lc.lib lib:amiga.lib
  1388. X
  1389. XBLINK= blink from lib:cres.o %(right) TO %(left) SC SD LIB $(LIBS)
  1390. XBLINK_LD= blink from lib:c.o %(right) TO %(left) SC LIB $(LIBS)
  1391. X
  1392. Xall: $(EXE)compress $(EXE)tarsplit $(EXE)unshar \
  1393. X     $(EXE)uudecode $(EXE)uuencode
  1394. X
  1395. X$(EXE)compress : $(OD)14compress.o
  1396. X    $(BLINK_LD)
  1397. X
  1398. X$(EXE)tarsplit : $(OD)tarsplit.o
  1399. X    $(BLINK)
  1400. X
  1401. X$(EXE)unshar : $(OD)unshar.o
  1402. X    $(BLINK)
  1403. X
  1404. X$(EXE)uudecode : $(OD)uudecode.o
  1405. X    $(BLINK)
  1406. X
  1407. X$(EXE)uuencode : $(OD)uuencode.o
  1408. X    $(BLINK)
  1409. X
  1410. X$(OBJS) : $(SRCS)
  1411. X    lc $(CFLAGS) -H$(SYMS) -o%(left) %(right)
  1412. X
  1413. X$(OD)14compress.o : compress.c
  1414. X    lc $(CFLAGS_LD) -H$(SYMS) -o%(left) %(right)
  1415. X
  1416. X$(OD)16compress.o : compress.c
  1417. X    lc $(CFLAGS_LD) -H$(SYMS) -o%(left) %(right)
  1418. X
  1419. END_OF_FILE
  1420. if test 938 -ne `wc -c <'src/compress/DMakefile'`; then
  1421.     echo shar: \"'src/compress/DMakefile'\" unpacked with wrong size!
  1422. fi
  1423. # end of 'src/compress/DMakefile'
  1424. fi
  1425. if test ! -d 'src/dmail' ; then
  1426.     echo shar: Creating directory \"'src/dmail'\"
  1427.     mkdir 'src/dmail'
  1428. fi
  1429. if test -f 'src/dmail/TODO' -a "${1}" != "-c" ; then 
  1430.   echo shar: Will not clobber existing file \"'src/dmail/TODO'\"
  1431. else
  1432. echo shar: Extracting \"'src/dmail/TODO'\" \(329 characters\)
  1433. sed "s/^X//" >'src/dmail/TODO' <<'END_OF_FILE'
  1434. X
  1435. XLIST tabs....
  1436. Xother junk, fix bugs (malloc stuff)
  1437. X
  1438. X-multiple dimension arrayed variables, add ability to do a natural join
  1439. X coupled to a command.
  1440. X
  1441. X-Automatically remove fields on forward, mail, and reply.
  1442. X
  1443. XResend support:
  1444. X        New To: on top.
  1445. X    New Cc: .... etc etc etc
  1446. X    prepend Resent- to Date, From, Message-Id, *To, *Cc 
  1447. X
  1448. X
  1449. END_OF_FILE
  1450. if test 329 -ne `wc -c <'src/dmail/TODO'`; then
  1451.     echo shar: \"'src/dmail/TODO'\" unpacked with wrong size!
  1452. fi
  1453. # end of 'src/dmail/TODO'
  1454. fi
  1455. if test -f 'src/dmail/dmkhelp.c' -a "${1}" != "-c" ; then 
  1456.   echo shar: Will not clobber existing file \"'src/dmail/dmkhelp.c'\"
  1457. else
  1458. echo shar: Extracting \"'src/dmail/dmkhelp.c'\" \(958 characters\)
  1459. sed "s/^X//" >'src/dmail/dmkhelp.c' <<'END_OF_FILE'
  1460. X
  1461. X/*
  1462. X * DMKHELP.C
  1463. X *
  1464. X *  (C) Copyright 1985-1990 by Matthew Dillon,  All Rights Reserved.
  1465. X *
  1466. X *  Standalone C source.
  1467. X *
  1468. X *  Takes the file DMAIL.HELP (or that specified), and puts quotes and
  1469. X * commas around each line, the output to stdout.  Used by Makefile to
  1470. X * place the help file on line (by making it a static array).  See the
  1471. X * Makefile.
  1472. X *
  1473. X */
  1474. X
  1475. X#include <stdio.h>
  1476. X
  1477. X#define HELPC "dmail.help"
  1478. X
  1479. Xstatic char buf[1024];
  1480. X
  1481. Xmain(argc, argv)
  1482. Xchar *argv[];
  1483. X{
  1484. X    FILE *fi;
  1485. X    char *ptr;
  1486. X    int len;
  1487. X    register int i;
  1488. X
  1489. X    if (argc == 1)
  1490. X    fi = fopen (HELPC, "r");
  1491. X    else
  1492. X    fi = fopen (argv[1], "r");
  1493. X    if (fi == NULL) {
  1494. X    puts ("CANNOT OPEN");
  1495. X    exit (1);
  1496. X    }
  1497. X    while (fgets (buf, 1024, fi)) {
  1498. X    len = strlen(buf) - 1;
  1499. X    buf[len] = '\0';
  1500. X    putchar ('\"');
  1501. X    for (i = 0; i < len; ++i) {
  1502. X        if (buf[i] == '\"') {
  1503. X        putchar ('\\');
  1504. X        putchar ('\"');
  1505. X        } else {
  1506. X        putchar (buf[i]);
  1507. X        }
  1508. X    }
  1509. X    puts ("\",");
  1510. X    }
  1511. X    puts ("NULL");
  1512. X    fclose (fi);
  1513. X}
  1514. X
  1515. X
  1516. END_OF_FILE
  1517. if test 958 -ne `wc -c <'src/dmail/dmkhelp.c'`; then
  1518.     echo shar: \"'src/dmail/dmkhelp.c'\" unpacked with wrong size!
  1519. fi
  1520. # end of 'src/dmail/dmkhelp.c'
  1521. fi
  1522. if test -f 'src/dmail/execom.h' -a "${1}" != "-c" ; then 
  1523.   echo shar: Will not clobber existing file \"'src/dmail/execom.h'\"
  1524. else
  1525. echo shar: Extracting \"'src/dmail/execom.h'\" \(358 characters\)
  1526. sed "s/^X//" >'src/dmail/execom.h' <<'END_OF_FILE'
  1527. X
  1528. X/*
  1529. X * EXECOM.H
  1530. X *
  1531. X *  (C) Copyright 1985-1990 by Matthew Dillon,  All Rights Reserved.
  1532. X */
  1533. X
  1534. Xstruct COMMAND {
  1535. X    int  (*func)();
  1536. X    int  stat;
  1537. X    int  val;
  1538. X    char *name;
  1539. X};
  1540. X
  1541. Xextern struct COMMAND Command[];
  1542. Xextern char *Desc[];
  1543. X
  1544. X#define C_NO        0x01    /* Not implimented yet          */
  1545. X#define C_COND        0x02    /* Is conditional, execute despite if */
  1546. X
  1547. X
  1548. END_OF_FILE
  1549. if test 358 -ne `wc -c <'src/dmail/execom.h'`; then
  1550.     echo shar: \"'src/dmail/execom.h'\" unpacked with wrong size!
  1551. fi
  1552. # end of 'src/dmail/execom.h'
  1553. fi
  1554. if test ! -d 'src/getty' ; then
  1555.     echo shar: Creating directory \"'src/getty'\"
  1556.     mkdir 'src/getty'
  1557. fi
  1558. if test -f 'src/getty/DMakefile' -a "${1}" != "-c" ; then 
  1559.   echo shar: Will not clobber existing file \"'src/getty/DMakefile'\"
  1560. else
  1561. echo shar: Extracting \"'src/getty/DMakefile'\" \(369 characters\)
  1562. sed "s/^X//" >'src/getty/DMakefile' <<'END_OF_FILE'
  1563. X
  1564. XOD=   ltmp:uucp/
  1565. XSYMS= uucp:src/lib/all.m
  1566. XSRCS= getty.c passwd.c
  1567. XOBJS= $(SRCS:"*.c":"$(OD)*.o")
  1568. XCFLAGS= -iuucp:src/include/ -cim -cq
  1569. XEXE= uucp:c/
  1570. XLIBS= uucp:src/lib/uucp.lib lib:lc.lib lib:amiga.lib
  1571. X
  1572. Xall: $(EXE)getty
  1573. X
  1574. X$(EXE)getty: $(OBJS)
  1575. X    blink from lib:cres.o $(OBJS) SC SD TO %(left) lib $(LIBS)
  1576. X
  1577. X$(OBJS) : $(SRCS)
  1578. X    lc $(CFLAGS) -H$(SYMS) -o%(left) %(right)
  1579. X
  1580. END_OF_FILE
  1581. if test 369 -ne `wc -c <'src/getty/DMakefile'`; then
  1582.     echo shar: \"'src/getty/DMakefile'\" unpacked with wrong size!
  1583. fi
  1584. # end of 'src/getty/DMakefile'
  1585. fi
  1586. if test -f 'src/getty/syms.c' -a "${1}" != "-c" ; then 
  1587.   echo shar: Will not clobber existing file \"'src/getty/syms.c'\"
  1588. else
  1589. echo shar: Extracting \"'src/getty/syms.c'\" \(195 characters\)
  1590. sed "s/^X//" >'src/getty/syms.c' <<'END_OF_FILE'
  1591. X
  1592. X/*
  1593. X *  SYMS.C
  1594. X *
  1595. X *  (C) Copyright 1989-1990 by Matthew Dillon,  All Rights Reserved.
  1596. X *
  1597. X *  almost-dummy file for precomp symbol table gen.
  1598. X */
  1599. X
  1600. X#include <exec/types.h>
  1601. X#include <proto/all.h>
  1602. X
  1603. END_OF_FILE
  1604. if test 195 -ne `wc -c <'src/getty/syms.c'`; then
  1605.     echo shar: \"'src/getty/syms.c'\" unpacked with wrong size!
  1606. fi
  1607. # end of 'src/getty/syms.c'
  1608. fi
  1609. if test ! -d 'src/include' ; then
  1610.     echo shar: Creating directory \"'src/include'\"
  1611.     mkdir 'src/include'
  1612. fi
  1613. if test -f 'src/include/log.h' -a "${1}" != "-c" ; then 
  1614.   echo shar: Will not clobber existing file \"'src/include/log.h'\"
  1615. else
  1616. echo shar: Extracting \"'src/include/log.h'\" \(330 characters\)
  1617. sed "s/^X//" >'src/include/log.h' <<'END_OF_FILE'
  1618. X
  1619. X/*
  1620. X *  LOG.H
  1621. X *
  1622. X *  (C) Copyright 1989-1990 by Matthew Dillon,  All Rights Reserved.
  1623. X *
  1624. X */
  1625. X
  1626. Xextern int     LogToStdout;
  1627. Xextern int     LogLevel;
  1628. Xextern char    *LogProgram;
  1629. Xextern char    *LogHost;
  1630. Xextern char    *LogWho;
  1631. Xextern char    *LogFile;
  1632. X
  1633. X#define DEBUG(level, msg, moremsg)  if (LogLevel > level) printf(msg, moremsg)
  1634. X
  1635. END_OF_FILE
  1636. if test 330 -ne `wc -c <'src/include/log.h'`; then
  1637.     echo shar: \"'src/include/log.h'\" unpacked with wrong size!
  1638. fi
  1639. # end of 'src/include/log.h'
  1640. fi
  1641. if test -f 'src/include/pwd.h' -a "${1}" != "-c" ; then 
  1642.   echo shar: Will not clobber existing file \"'src/include/pwd.h'\"
  1643. else
  1644. echo shar: Extracting \"'src/include/pwd.h'\" \(540 characters\)
  1645. sed "s/^X//" >'src/include/pwd.h' <<'END_OF_FILE'
  1646. X
  1647. X/*
  1648. X *  PWD.H
  1649. X *
  1650. X *  (C) Copyright 1989-1990 by Matthew Dillon,  All Rights Reserved.
  1651. X */
  1652. X
  1653. Xstruct passwd {
  1654. X    char    *pw_name;
  1655. X    char    *pw_passwd;
  1656. X    long    pw_uid;
  1657. X    long    pw_gid;
  1658. X    long    pw_quota;
  1659. X    char    *pw_comment;
  1660. X    char    *pw_gecos;
  1661. X    char    *pw_dir;
  1662. X    char    *pw_shell;
  1663. X    char    *pw_shell_arg0;    /*  arg0 broken out from pw_shell   */
  1664. X    char    *pw_shell_argn;    /*  remaining args from pw_shell    */
  1665. X};
  1666. X
  1667. Xextern struct passwd *getpwuid();
  1668. Xextern struct passwd *getpwnam();
  1669. X
  1670. Xextern char *PasswdFile;
  1671. X
  1672. END_OF_FILE
  1673. if test 540 -ne `wc -c <'src/include/pwd.h'`; then
  1674.     echo shar: \"'src/include/pwd.h'\" unpacked with wrong size!
  1675. fi
  1676. # end of 'src/include/pwd.h'
  1677. fi
  1678. if test ! -d 'src/include/sys' ; then
  1679.     echo shar: Creating directory \"'src/include/sys'\"
  1680.     mkdir 'src/include/sys'
  1681. fi
  1682. if test -f 'src/include/sys/file.h' -a "${1}" != "-c" ; then 
  1683.   echo shar: Will not clobber existing file \"'src/include/sys/file.h'\"
  1684. else
  1685. echo shar: Extracting \"'src/include/sys/file.h'\" \(136 characters\)
  1686. sed "s/^X//" >'src/include/sys/file.h' <<'END_OF_FILE'
  1687. X
  1688. X/*
  1689. X *  FILE.H
  1690. X *
  1691. X *  UNIX compat.
  1692. X */
  1693. X
  1694. X#include <fcntl.h>
  1695. X
  1696. X#define LOCK_EX     0x01
  1697. X#define LOCK_UN     0x02
  1698. X#define LOCK_NB     0x04
  1699. X
  1700. END_OF_FILE
  1701. if test 136 -ne `wc -c <'src/include/sys/file.h'`; then
  1702.     echo shar: \"'src/include/sys/file.h'\" unpacked with wrong size!
  1703. fi
  1704. # end of 'src/include/sys/file.h'
  1705. fi
  1706. if test -f 'src/include/sys/stat.h' -a "${1}" != "-c" ; then 
  1707.   echo shar: Will not clobber existing file \"'src/include/sys/stat.h'\"
  1708. else
  1709. echo shar: Extracting \"'src/include/sys/stat.h'\" \(239 characters\)
  1710. sed "s/^X//" >'src/include/sys/stat.h' <<'END_OF_FILE'
  1711. X
  1712. X/*
  1713. X *  STAT.H
  1714. X *
  1715. X *  (C) Copyright 1989-1990 by Matthew Dillon,  All Rights Reserved.
  1716. X *
  1717. X *  Expand as applicable for library routines in uucp:src/lib
  1718. X */
  1719. X
  1720. Xstruct stat {
  1721. X    long    st_ino;
  1722. X    long    st_mtime;
  1723. X    long    st_ctime;
  1724. X};
  1725. X
  1726. END_OF_FILE
  1727. if test 239 -ne `wc -c <'src/include/sys/stat.h'`; then
  1728.     echo shar: \"'src/include/sys/stat.h'\" unpacked with wrong size!
  1729. fi
  1730. # end of 'src/include/sys/stat.h'
  1731. fi
  1732. if test -f 'src/include/sys/time.h' -a "${1}" != "-c" ; then 
  1733.   echo shar: Will not clobber existing file \"'src/include/sys/time.h'\"
  1734. else
  1735. echo shar: Extracting \"'src/include/sys/time.h'\" \(107 characters\)
  1736. sed "s/^X//" >'src/include/sys/time.h' <<'END_OF_FILE'
  1737. X
  1738. X/*
  1739. X *  SYS/TIME.H
  1740. X *
  1741. X *  UNIX Compat
  1742. X */
  1743. X
  1744. X#ifndef SYS_TIME_H
  1745. X#define SYS_TIME_H
  1746. X#include <time.h>
  1747. X#endif
  1748. X
  1749. END_OF_FILE
  1750. if test 107 -ne `wc -c <'src/include/sys/time.h'`; then
  1751.     echo shar: \"'src/include/sys/time.h'\" unpacked with wrong size!
  1752. fi
  1753. # end of 'src/include/sys/time.h'
  1754. fi
  1755. if test -f 'src/include/sys/types.h' -a "${1}" != "-c" ; then 
  1756.   echo shar: Will not clobber existing file \"'src/include/sys/types.h'\"
  1757. else
  1758. echo shar: Extracting \"'src/include/sys/types.h'\" \(125 characters\)
  1759. sed "s/^X//" >'src/include/sys/types.h' <<'END_OF_FILE'
  1760. X
  1761. X/*
  1762. X *  SYS/TYPES.H
  1763. X *
  1764. X *  (C) Copyright 1989-1990 by Matthew Dillon,  All Rights Reserved.
  1765. X *
  1766. X *  UNIX compatibility?
  1767. X */
  1768. X
  1769. X
  1770. END_OF_FILE
  1771. if test 125 -ne `wc -c <'src/include/sys/types.h'`; then
  1772.     echo shar: \"'src/include/sys/types.h'\" unpacked with wrong size!
  1773. fi
  1774. # end of 'src/include/sys/types.h'
  1775. fi
  1776. if test -f 'src/include/tmpfile.h' -a "${1}" != "-c" ; then 
  1777.   echo shar: Will not clobber existing file \"'src/include/tmpfile.h'\"
  1778. else
  1779. echo shar: Extracting \"'src/include/tmpfile.h'\" \(126 characters\)
  1780. sed "s/^X//" >'src/include/tmpfile.h' <<'END_OF_FILE'
  1781. X
  1782. X/*
  1783. X *  TMPFILE.H
  1784. X *
  1785. X *  (C) Copyright 1989-1990 by Matthew Dillon,  All Rights Reserved.
  1786. X *
  1787. X */
  1788. X
  1789. Xchar *TmpFileName(char *);
  1790. X
  1791. END_OF_FILE
  1792. if test 126 -ne `wc -c <'src/include/tmpfile.h'`; then
  1793.     echo shar: \"'src/include/tmpfile.h'\" unpacked with wrong size!
  1794. fi
  1795. # end of 'src/include/tmpfile.h'
  1796. fi
  1797. if test ! -d 'src/lib' ; then
  1798.     echo shar: Creating directory \"'src/lib'\"
  1799.     mkdir 'src/lib'
  1800. fi
  1801. if test -f 'src/lib/DMakefile' -a "${1}" != "-c" ; then 
  1802.   echo shar: Will not clobber existing file \"'src/lib/DMakefile'\"
  1803. else
  1804. echo shar: Extracting \"'src/lib/DMakefile'\" \(615 characters\)
  1805. sed "s/^X//" >'src/lib/DMakefile' <<'END_OF_FILE'
  1806. X
  1807. X#   DMakefile    For Lattice V5.02
  1808. X#
  1809. X
  1810. XOD = ltmp:uucp/lib/
  1811. XEXE = uucp.lib
  1812. XSYMS = all.m
  1813. X
  1814. XSRCS = getpwnam.c serialport.c setstdin.c sleep.c validuser.c lsys.c \
  1815. X       mntreq.c security.c log.c lockfile.c tmpfile.c seq.c getenv.c \
  1816. X       config.c alias.c string.c
  1817. X
  1818. XOBJS = $(SRCS:"*.c":"$(OD)*.o")
  1819. X
  1820. XCFLAGS= -iuucp:src/include/ -cq
  1821. X
  1822. X$(EXE) : $(SYMS) $(OBJS)
  1823. X    list LFORMAT $(OD)%s TO $(OD)list.lst $(OD)#?.o
  1824. X    oml %(left) r @$(OD)list.lst
  1825. X    filenote %(left) NODIST
  1826. X
  1827. X$(OBJS) : $(SRCS)
  1828. X    lc $(CFLAGS) -H$(SYMS) -o%(left) %(right)
  1829. X
  1830. X$(SYMS) : syms.c
  1831. X    lc $(CFLAGS) -ph -o$(SYMS) syms.c
  1832. X    filenote %(left) NODIST
  1833. X
  1834. END_OF_FILE
  1835. if test 615 -ne `wc -c <'src/lib/DMakefile'`; then
  1836.     echo shar: \"'src/lib/DMakefile'\" unpacked with wrong size!
  1837. fi
  1838. # end of 'src/lib/DMakefile'
  1839. fi
  1840. if test -f 'src/lib/getenv.c' -a "${1}" != "-c" ; then 
  1841.   echo shar: Will not clobber existing file \"'src/lib/getenv.c'\"
  1842. else
  1843. echo shar: Extracting \"'src/lib/getenv.c'\" \(834 characters\)
  1844. sed "s/^X//" >'src/lib/getenv.c' <<'END_OF_FILE'
  1845. X
  1846. X/*
  1847. X *  GETENV.C
  1848. X *
  1849. X *  Lattice's screws up.
  1850. X *
  1851. X *  (C) Copyright 1989-1990 by Matthew Dillon,  All Rights Reserved.
  1852. X */
  1853. X
  1854. X#include <proto/all.h>
  1855. X#include <stdio.h>
  1856. X#include <stdlib.h>
  1857. X
  1858. Xchar *
  1859. Xgettmpenv(id)
  1860. Xchar *id;
  1861. X{
  1862. X    static char *buf;
  1863. X    static char *res = NULL;
  1864. X    long fh;
  1865. X    long len;
  1866. X
  1867. X    buf = malloc(strlen(id) + 8);
  1868. X    sprintf(buf, "ENV:%s", id);
  1869. X    fh = Open(buf, 1005);
  1870. X    free(buf);
  1871. X    if (fh) {
  1872. X    Seek(fh, 0L, 1);
  1873. X    len = Seek(fh, 0L, -1);
  1874. X    if (len < 0) {
  1875. X        Close(fh);
  1876. X        return(NULL);
  1877. X    }
  1878. X    if (res)
  1879. X        free(res);
  1880. X    res = malloc(len + 1);
  1881. X    Read(fh, res, len);
  1882. X    Close(fh);
  1883. X    res[len] = 0;
  1884. X    return(res);
  1885. X    }
  1886. X    return(NULL);
  1887. X}
  1888. X
  1889. Xchar *
  1890. Xgetenv(id)
  1891. Xchar *id;
  1892. X{
  1893. X    char *res = gettmpenv(id);
  1894. X    char *perm = NULL;
  1895. X
  1896. X    if (res) {
  1897. X    perm = malloc(strlen(res) + 1);
  1898. X    strcpy(perm, res);
  1899. X    }
  1900. X    return(perm);
  1901. X}
  1902. X
  1903. END_OF_FILE
  1904. if test 834 -ne `wc -c <'src/lib/getenv.c'`; then
  1905.     echo shar: \"'src/lib/getenv.c'\" unpacked with wrong size!
  1906. fi
  1907. # end of 'src/lib/getenv.c'
  1908. fi
  1909. if test -f 'src/lib/lsys.c' -a "${1}" != "-c" ; then 
  1910.   echo shar: Will not clobber existing file \"'src/lib/lsys.c'\"
  1911. else
  1912. echo shar: Extracting \"'src/lib/lsys.c'\" \(621 characters\)
  1913. sed "s/^X//" >'src/lib/lsys.c' <<'END_OF_FILE'
  1914. X
  1915. X/*
  1916. X *  LSYS.C
  1917. X *
  1918. X *  (C) Copyright 1989-1990 by Matthew Dillon,  All Rights Reserved.
  1919. X *
  1920. X */
  1921. X
  1922. X#include <stdio.h>
  1923. X
  1924. Xint
  1925. Xis_in_L_sys_file(system_name)
  1926. Xchar *system_name;
  1927. X{
  1928. X    static char buf[256];
  1929. X    static char system[128];
  1930. X    FILE *fd;
  1931. X
  1932. X    if (!(fd = fopen("UULIB:L.sys","r"))) {
  1933. X    printf("Couldn't open UULIB:L.sys file\n");
  1934. X    exit(1);
  1935. X    }
  1936. X
  1937. X    sprintf(system,"%s ", system_name);
  1938. X
  1939. X    while (NULL != fgets(buf, sizeof buf, fd)) {
  1940. X    if (buf[0] == '#' || buf[0] == '\n')
  1941. X        continue;
  1942. X    if (strncmp(buf, system, strlen(system)) == 0) {
  1943. X        fclose(fd);
  1944. X        return TRUE;
  1945. X    }
  1946. X    }
  1947. X    fclose(fd);
  1948. X    return FALSE;
  1949. X}
  1950. X
  1951. X
  1952. END_OF_FILE
  1953. if test 621 -ne `wc -c <'src/lib/lsys.c'`; then
  1954.     echo shar: \"'src/lib/lsys.c'\" unpacked with wrong size!
  1955. fi
  1956. # end of 'src/lib/lsys.c'
  1957. fi
  1958. if test -f 'src/lib/mntreq.c' -a "${1}" != "-c" ; then 
  1959.   echo shar: Will not clobber existing file \"'src/lib/mntreq.c'\"
  1960. else
  1961. echo shar: Extracting \"'src/lib/mntreq.c'\" \(519 characters\)
  1962. sed "s/^X//" >'src/lib/mntreq.c' <<'END_OF_FILE'
  1963. X
  1964. X/*
  1965. X *  MNTREQ.C
  1966. X *
  1967. X *  (C) Copyright 1989-1990 by Matthew Dillon,  All Rights Reserved.
  1968. X */
  1969. X
  1970. X#include <proto/all.h>
  1971. X
  1972. Xtypedef struct Process    PROC;
  1973. X
  1974. Xvoid
  1975. Xmountrequest(bool)
  1976. Xint bool;
  1977. X{
  1978. X    static APTR original_pr_WindowPtr = NULL;
  1979. X    register PROC *proc;
  1980. X
  1981. X    proc = (PROC *)FindTask(0);
  1982. X    if (!bool && proc->pr_WindowPtr != (APTR)-1) {
  1983. X    original_pr_WindowPtr = proc->pr_WindowPtr;
  1984. X    proc->pr_WindowPtr = (APTR)-1;
  1985. X    }
  1986. X    if (bool && proc->pr_WindowPtr == (APTR)-1)
  1987. X    proc->pr_WindowPtr = original_pr_WindowPtr;
  1988. X}
  1989. X
  1990. X
  1991. END_OF_FILE
  1992. if test 519 -ne `wc -c <'src/lib/mntreq.c'`; then
  1993.     echo shar: \"'src/lib/mntreq.c'\" unpacked with wrong size!
  1994. fi
  1995. # end of 'src/lib/mntreq.c'
  1996. fi
  1997. if test -f 'src/lib/seq.c' -a "${1}" != "-c" ; then 
  1998.   echo shar: Will not clobber existing file \"'src/lib/seq.c'\"
  1999. else
  2000. echo shar: Extracting \"'src/lib/seq.c'\" \(643 characters\)
  2001. sed "s/^X//" >'src/lib/seq.c' <<'END_OF_FILE'
  2002. X
  2003. X/*
  2004. X *  SEQ.C
  2005. X *
  2006. X *  (C) Copyright 1989-1990 by Matthew Dillon,  All Rights Reserved.
  2007. X *
  2008. X *  Returns a unique sequence number
  2009. X */
  2010. X
  2011. X#include <stdio.h>
  2012. X
  2013. XGetSequence(bump)
  2014. X{
  2015. X    char *seqfile = "UULIB:seq";
  2016. X    FILE *fp;
  2017. X    int seq;
  2018. X    char buf[32];
  2019. X
  2020. X    LockFile(seqfile);
  2021. X    fp = fopen("UULIB:seq","r");
  2022. X    if (fp) {
  2023. X    fgets(buf, 32, fp);
  2024. X    seq = atoi(buf);
  2025. X    fclose(fp);
  2026. X    } else {
  2027. X    perror("UULIB:seq");
  2028. X    seq = -1;
  2029. X    }
  2030. X
  2031. X    if (seq > 0) {
  2032. X    fp = fopen("UULIB:seq", "w");
  2033. X    if (fp) {
  2034. X        fprintf(fp,"%d", seq + bump);
  2035. X        fclose(fp);
  2036. X    } else {
  2037. X        perror("UULIB:seq");
  2038. X        seq = -1;
  2039. X    }
  2040. X    }
  2041. X    UnLockFile(seqfile);
  2042. X    return(seq);
  2043. X}
  2044. X
  2045. END_OF_FILE
  2046. if test 643 -ne `wc -c <'src/lib/seq.c'`; then
  2047.     echo shar: \"'src/lib/seq.c'\" unpacked with wrong size!
  2048. fi
  2049. # end of 'src/lib/seq.c'
  2050. fi
  2051. if test -f 'src/lib/setstdin.c' -a "${1}" != "-c" ; then 
  2052.   echo shar: Will not clobber existing file \"'src/lib/setstdin.c'\"
  2053. else
  2054. echo shar: Extracting \"'src/lib/setstdin.c'\" \(815 characters\)
  2055. sed "s/^X//" >'src/lib/setstdin.c' <<'END_OF_FILE'
  2056. X
  2057. X/*
  2058. X *  SETSTDIN.C
  2059. X *
  2060. X *  (C) Copyright 1989-1990 by Matthew Dillon,  All Rights Reserved.
  2061. X *
  2062. X *  Sets stdin, stdout, and stderr to UUSER: handler
  2063. X */
  2064. X
  2065. X#include <stdio.h>
  2066. X
  2067. XSetStdin(ac, av)
  2068. Xchar *av[];
  2069. X{
  2070. X    short i;
  2071. X    short getty = 0;            /*  from getty    */
  2072. X    char *device = "serial.device";     /*  device name */
  2073. X    long unit = 0;            /*  unit no.    */
  2074. X    char buf[64];
  2075. X    FILE *f1, *f2, *f3;
  2076. X
  2077. X    for (i = 1; i < ac; ++i) {
  2078. X    char *ptr = av[i];
  2079. X    if (*ptr != '-')
  2080. X        continue;
  2081. X    if (ptr[1] == 'D')
  2082. X        device = av[++i];
  2083. X    if (ptr[1] == 'U')
  2084. X        unit = atoi(av[++i]);
  2085. X    if (ptr[1] == 'G')
  2086. X        getty = 1;
  2087. X    }
  2088. X    sprintf(buf, "UUSER:%s/%d/R1000G%d", device, unit, getty);
  2089. X    f1 = freopen(buf, "r", stdin);
  2090. X    f2 = freopen(buf, "w+", stdout);
  2091. X    f3 = freopen(buf, "w+", stderr);
  2092. X    return(f1 && f2 && f3);
  2093. X}
  2094. X
  2095. END_OF_FILE
  2096. if test 815 -ne `wc -c <'src/lib/setstdin.c'`; then
  2097.     echo shar: \"'src/lib/setstdin.c'\" unpacked with wrong size!
  2098. fi
  2099. # end of 'src/lib/setstdin.c'
  2100. fi
  2101. if test -f 'src/lib/sleep.c' -a "${1}" != "-c" ; then 
  2102.   echo shar: Will not clobber existing file \"'src/lib/sleep.c'\"
  2103. else
  2104. echo shar: Extracting \"'src/lib/sleep.c'\" \(156 characters\)
  2105. sed "s/^X//" >'src/lib/sleep.c' <<'END_OF_FILE'
  2106. X
  2107. X/*
  2108. X *  SLEEP.C
  2109. X *
  2110. X *  (C) Copyright 1989-1990 by Matthew Dillon,  All Rights Reserved.
  2111. X *
  2112. X */
  2113. X
  2114. X#include <proto/all.h>
  2115. X
  2116. Xvoid
  2117. Xsleep(n)
  2118. X{
  2119. X    Delay(50*n);
  2120. X}
  2121. X
  2122. END_OF_FILE
  2123. if test 156 -ne `wc -c <'src/lib/sleep.c'`; then
  2124.     echo shar: \"'src/lib/sleep.c'\" unpacked with wrong size!
  2125. fi
  2126. # end of 'src/lib/sleep.c'
  2127. fi
  2128. if test -f 'src/lib/string.c' -a "${1}" != "-c" ; then 
  2129.   echo shar: Will not clobber existing file \"'src/lib/string.c'\"
  2130. else
  2131. echo shar: Extracting \"'src/lib/string.c'\" \(589 characters\)
  2132. sed "s/^X//" >'src/lib/string.c' <<'END_OF_FILE'
  2133. X
  2134. X/*
  2135. X *  STRING.C
  2136. X *
  2137. X *  (C) Copyright 1989-1990 by Matthew Dillon,  All Rights Reserved.
  2138. X *
  2139. X */
  2140. X
  2141. Xstrcmpi(s, d)
  2142. Xchar *s;
  2143. Xchar *d;
  2144. X{
  2145. X    short c1, c2;
  2146. X    for (;;) {
  2147. X    c1 = *s++;
  2148. X    c2 = *d++;
  2149. X
  2150. X    if (c1 == 0 || c2 == 0)
  2151. X        return(c1 || c2);   /*  0= both are 0   */
  2152. X    if (((c1 ^ c2) | 0x20) != 0x20)
  2153. X        return(1);
  2154. X    }
  2155. X    return(0);
  2156. X}
  2157. X
  2158. Xstrncmpi(s, d, n)
  2159. Xchar *s;
  2160. Xchar *d;
  2161. Xshort n;
  2162. X{
  2163. X    short c1, c2;
  2164. X    while (n--) {
  2165. X    c1 = *s++;
  2166. X    c2 = *d++;
  2167. X
  2168. X    if (c1 == 0 || c2 == 0)
  2169. X        return(c1 || c2);   /*  0= both are 0   */
  2170. X    if (((c1 ^ c2) | 0x20) != 0x20)
  2171. X        return(1);
  2172. X    }
  2173. X    return(0);
  2174. X}
  2175. X
  2176. END_OF_FILE
  2177. if test 589 -ne `wc -c <'src/lib/string.c'`; then
  2178.     echo shar: \"'src/lib/string.c'\" unpacked with wrong size!
  2179. fi
  2180. # end of 'src/lib/string.c'
  2181. fi
  2182. if test -f 'src/lib/syms.c' -a "${1}" != "-c" ; then 
  2183.   echo shar: Will not clobber existing file \"'src/lib/syms.c'\"
  2184. else
  2185. echo shar: Extracting \"'src/lib/syms.c'\" \(49 characters\)
  2186. sed "s/^X//" >'src/lib/syms.c' <<'END_OF_FILE'
  2187. X
  2188. X#include <exec/types.h>
  2189. X#include <proto/all.h>
  2190. X
  2191. END_OF_FILE
  2192. if test 49 -ne `wc -c <'src/lib/syms.c'`; then
  2193.     echo shar: \"'src/lib/syms.c'\" unpacked with wrong size!
  2194. fi
  2195. # end of 'src/lib/syms.c'
  2196. fi
  2197. if test -f 'src/lib/tmpfile.c' -a "${1}" != "-c" ; then 
  2198.   echo shar: Will not clobber existing file \"'src/lib/tmpfile.c'\"
  2199. else
  2200. echo shar: Extracting \"'src/lib/tmpfile.c'\" \(376 characters\)
  2201. sed "s/^X//" >'src/lib/tmpfile.c' <<'END_OF_FILE'
  2202. X
  2203. X/*
  2204. X *  TMPFILE.C
  2205. X *
  2206. X *  (C) Copyright 1989-1990 by Matthew Dillon,  All Rights Reserved.
  2207. X *
  2208. X *  create a temporary file
  2209. X *
  2210. X *  template limited to 16 chars
  2211. X */
  2212. X
  2213. Xchar *
  2214. XTmpFileName(template)
  2215. Xchar *template;
  2216. X{
  2217. X    static char Template[256];
  2218. X    static unsigned short Idx;
  2219. X
  2220. X    sprintf(Template, "%s-%08lx.TMP", template, (long)FindTask(NULL) + Idx++);
  2221. X    return(Template);
  2222. X}
  2223. X
  2224. END_OF_FILE
  2225. if test 376 -ne `wc -c <'src/lib/tmpfile.c'`; then
  2226.     echo shar: \"'src/lib/tmpfile.c'\" unpacked with wrong size!
  2227. fi
  2228. # end of 'src/lib/tmpfile.c'
  2229. fi
  2230. if test -f 'src/lib/validuser.c' -a "${1}" != "-c" ; then 
  2231.   echo shar: Will not clobber existing file \"'src/lib/validuser.c'\"
  2232. else
  2233. echo shar: Extracting \"'src/lib/validuser.c'\" \(338 characters\)
  2234. sed "s/^X//" >'src/lib/validuser.c' <<'END_OF_FILE'
  2235. X
  2236. X/*
  2237. X *  VALIDUSER.C
  2238. X *
  2239. X *  (C) Copyright 1989-1990 by Matthew Dillon,  All Rights Reserved.
  2240. X */
  2241. X
  2242. XValidUser(str)
  2243. Xchar *str;
  2244. X{
  2245. X    if (*str == '|' || *str == '@')
  2246. X    return(0);
  2247. X    while (*str) {
  2248. X    if (*str < 32 || *str > 126)
  2249. X        return(0);
  2250. X    if (*str == ':')
  2251. X        return(0);
  2252. X    if (*str == '/')
  2253. X        return(0);
  2254. X    ++str;
  2255. X    }
  2256. X    return(1);
  2257. X}
  2258. X
  2259. END_OF_FILE
  2260. if test 338 -ne `wc -c <'src/lib/validuser.c'`; then
  2261.     echo shar: \"'src/lib/validuser.c'\" unpacked with wrong size!
  2262. fi
  2263. # end of 'src/lib/validuser.c'
  2264. fi
  2265. if test ! -d 'src/sendmail' ; then
  2266.     echo shar: Creating directory \"'src/sendmail'\"
  2267.     mkdir 'src/sendmail'
  2268. fi
  2269. if test -f 'src/sendmail/DMakefile' -a "${1}" != "-c" ; then 
  2270.   echo shar: Will not clobber existing file \"'src/sendmail/DMakefile'\"
  2271. else
  2272. echo shar: Extracting \"'src/sendmail/DMakefile'\" \(496 characters\)
  2273. sed "s/^X//" >'src/sendmail/DMakefile' <<'END_OF_FILE'
  2274. X
  2275. X#
  2276. X#   (C) Copyright 1989-1990 by Matthew Dillon,  All Rights Reserved.
  2277. X#
  2278. X
  2279. XOD=   ltmp:uucp/
  2280. XSYMS= uucp:src/lib/all.m
  2281. XSRCS= sendmail.c parse.c domain.c
  2282. XOBJS= $(SRCS:"*.c":"$(OD)*.o")
  2283. XCFLAGS= -iuucp:src/include/ -cim -cq
  2284. XEXE= uucp:c/
  2285. XLIBS= uucp:src/lib/uucp.lib lib:lc.lib lib:amiga.lib
  2286. X
  2287. Xall: $(EXE)sendmail
  2288. X
  2289. X$(EXE)sendmail: $(OBJS)
  2290. X    blink from lib:cres.o $(OBJS) SC SD TO %(left) lib $(LIBS)
  2291. X    copy $(EXE)sendmail $(EXE)rmail
  2292. X
  2293. X$(OBJS) : $(SRCS)
  2294. X    lc $(CFLAGS) -H$(SYMS) -o%(left) %(right)
  2295. X
  2296. END_OF_FILE
  2297. if test 496 -ne `wc -c <'src/sendmail/DMakefile'`; then
  2298.     echo shar: \"'src/sendmail/DMakefile'\" unpacked with wrong size!
  2299. fi
  2300. # end of 'src/sendmail/DMakefile'
  2301. fi
  2302. if test ! -d 'src/uucico' ; then
  2303.     echo shar: Creating directory \"'src/uucico'\"
  2304.     mkdir 'src/uucico'
  2305. fi
  2306. if test -f 'src/uucico/modem.h' -a "${1}" != "-c" ; then 
  2307.   echo shar: Will not clobber existing file \"'src/uucico/modem.h'\"
  2308. else
  2309. echo shar: Extracting \"'src/uucico/modem.h'\" \(854 characters\)
  2310. sed "s/^X//" >'src/uucico/modem.h' <<'END_OF_FILE'
  2311. X/* modem.h
  2312. X
  2313. X   This file defines all the routines that specific to the modem.
  2314. X
  2315. X   Copyright 1988 by William Loftus.  All rights reserved.
  2316. X
  2317. X*/
  2318. X
  2319. X/* When in SLAVE mode the this routine should poll the modem for
  2320. X   a CONNECT message (at least on Hayes's) */
  2321. Xvoid openline();
  2322. X
  2323. X/* Machines may dial in at different baud rates that are reported by the
  2324. X   modem.  This routine uncovers what the baud rate incomming rate is
  2325. X   and returns it as an int */
  2326. Xint  get_baud();
  2327. X
  2328. X/* This routine is called when the UUCICO program starts up */
  2329. Xvoid modem_init();
  2330. X
  2331. X/* this routine takes a number as a parameter and sends the appropriate
  2332. X   commands to the modem to dial that number */
  2333. Xint dial_nbr(char *);
  2334. X
  2335. X/* This routine is called at the end of a call.  It should reset the modem
  2336. X   to the appropriate state (i.e. ready to receive another call) */
  2337. Xvoid reset_modem();
  2338. X
  2339. END_OF_FILE
  2340. if test 854 -ne `wc -c <'src/uucico/modem.h'`; then
  2341.     echo shar: \"'src/uucico/modem.h'\" unpacked with wrong size!
  2342. fi
  2343. # end of 'src/uucico/modem.h'
  2344. fi
  2345. if test -f 'src/uucico/uuhosts.c' -a "${1}" != "-c" ; then 
  2346.   echo shar: Will not clobber existing file \"'src/uucico/uuhosts.c'\"
  2347. else
  2348. echo shar: Extracting \"'src/uucico/uuhosts.c'\" \(672 characters\)
  2349. sed "s/^X//" >'src/uucico/uuhosts.c' <<'END_OF_FILE'
  2350. X/*
  2351. X   UUHOSTS  -- List all UUCP sites connected to our system
  2352. X
  2353. X   Usage: UUHOSTS
  2354. X
  2355. X   Copyright 1988 by William Loftus.  All rights reserved.
  2356. X
  2357. X   ARPA: wpl@prc.unisys.com
  2358. X   UUCP: wpl@burdvax.UUCP
  2359. X   USMAIL: Unisys/Paoli Research Center;PO BOX 517;Paoli, PA 19301-0517
  2360. X
  2361. X*/
  2362. X
  2363. X#include "/version.h"
  2364. X#include <stdio.h>
  2365. X
  2366. XIDENT(".01");
  2367. X
  2368. Xvoid
  2369. Xmain()
  2370. X{
  2371. X    char buf[256];
  2372. X    FILE *fd;
  2373. X
  2374. X    if (!(fd = fopen("UULIB:L.sys", "r"))) {
  2375. X    printf("Couldn't open UULIB:L.sys file\n");
  2376. X    exit(1);
  2377. X    }
  2378. X
  2379. X    while (fgets(buf, sizeof buf, fd)) {
  2380. X    if (buf[0] == '#' || buf[0] == '\n')
  2381. X        continue;
  2382. X    buf[(int)strchr(buf,' ') - (int)buf] = '\0';
  2383. X    printf("%s\n", buf);
  2384. X    }
  2385. X    fclose(fd);
  2386. X}
  2387. X
  2388. END_OF_FILE
  2389. if test 672 -ne `wc -c <'src/uucico/uuhosts.c'`; then
  2390.     echo shar: \"'src/uucico/uuhosts.c'\" unpacked with wrong size!
  2391. fi
  2392. # end of 'src/uucico/uuhosts.c'
  2393. fi
  2394. if test -f 'src/uucico/uuname.c' -a "${1}" != "-c" ; then 
  2395.   echo shar: Will not clobber existing file \"'src/uucico/uuname.c'\"
  2396. else
  2397. echo shar: Extracting \"'src/uucico/uuname.c'\" \(675 characters\)
  2398. sed "s/^X//" >'src/uucico/uuname.c' <<'END_OF_FILE'
  2399. X
  2400. X/*
  2401. X   UUHOSTS  -- List all UUCP sites connected to our system
  2402. X
  2403. X   Usage: UUHOSTS
  2404. X
  2405. X   Copyright 1988 by William Loftus.  All rights reserved.
  2406. X
  2407. X   ARPA: wpl@prc.unisys.com
  2408. X   UUCP: wpl@burdvax.UUCP
  2409. X   USMAIL: Unisys/Paoli Research Center;PO BOX 517;Paoli, PA 19301-0517
  2410. X
  2411. X*/
  2412. X
  2413. X#include <stdio.h>
  2414. X#include "/version.h"
  2415. X
  2416. XIDENT(".00");
  2417. X
  2418. Xvoid
  2419. Xmain()
  2420. X{
  2421. X    char buf[256];
  2422. X    FILE *fd;
  2423. X
  2424. X    if (!(fd = fopen("UULIB:L.sys", "r"))) {
  2425. X    printf("Couldn't open UULIB:L.sys file\n");
  2426. X    exit(1);
  2427. X    }
  2428. X
  2429. X    while (fgets(buf, sizeof buf, fd)) {
  2430. X    if (buf[0] == '#' || buf[0] == '\n')
  2431. X        continue;
  2432. X    buf[(int)strchr(buf,' ') - (int)buf] = '\0';
  2433. X    printf("%s\n", buf);
  2434. X    }
  2435. X
  2436. X    fclose(fd);
  2437. X}
  2438. X
  2439. X
  2440. END_OF_FILE
  2441. if test 675 -ne `wc -c <'src/uucico/uuname.c'`; then
  2442.     echo shar: \"'src/uucico/uuname.c'\" unpacked with wrong size!
  2443. fi
  2444. # end of 'src/uucico/uuname.c'
  2445. fi
  2446. if test -f 'src/uucico/uupoll.c' -a "${1}" != "-c" ; then 
  2447.   echo shar: Will not clobber existing file \"'src/uucico/uupoll.c'\"
  2448. else
  2449. echo shar: Extracting \"'src/uucico/uupoll.c'\" \(939 characters\)
  2450. sed "s/^X//" >'src/uucico/uupoll.c' <<'END_OF_FILE'
  2451. X/*
  2452. X   UUPOLL  -- call a UUCP connect site
  2453. X
  2454. X   Usage: UUPOLL <system-name>
  2455. X
  2456. X   Copyright 1988 by William Loftus.  All rights reserved.
  2457. X
  2458. X   ARPA: wpl@prc.unisys.com
  2459. X   UUCP: wpl@burdvax.UUCP
  2460. X   USMAIL: Unisys/Paoli Research Center;PO BOX 517;Paoli, PA 19301-0517
  2461. X
  2462. X*/
  2463. X
  2464. X#include <stdio.h>
  2465. X#include "/version.h"
  2466. X
  2467. X#define LOCK_FILE "t:UUCP.LCK"
  2468. X
  2469. X#define TRUE 1
  2470. X#define FALSE 0
  2471. X
  2472. XIDENT(".02");
  2473. X
  2474. XCXBRK()
  2475. X{
  2476. X    return(0);
  2477. X}
  2478. X
  2479. Xvoid
  2480. Xmain (argc, argv)
  2481. Xint argc;
  2482. Xchar ** argv;
  2483. X{
  2484. X  static  char buf[256];
  2485. X
  2486. X  if (argc != 2) {
  2487. X     printf("Usage: UUPOLL <system-name>\n");
  2488. X     exit(1);
  2489. X  }
  2490. X
  2491. X  if (access(LOCK_FILE,0) != -1) {
  2492. X     printf("UUCP is locked.\n");
  2493. X     exit(0);
  2494. X  }
  2495. X
  2496. X    if (is_in_L_sys_file(argv[1])) {
  2497. X    sprintf(buf, "run >nil: <nil: UUCICO -s%s\n", argv[1]);
  2498. X    if (system(buf) == -1) {
  2499. X        printf("Error spawning task to call system \"%s\"\n", argv[1]);
  2500. X    }
  2501. X    } else {
  2502. X    printf("System \"%s\" not in UULIB:L.sys file.\n", argv[1]);
  2503. X    }
  2504. X}
  2505. X
  2506. X
  2507. END_OF_FILE
  2508. if test 939 -ne `wc -c <'src/uucico/uupoll.c'`; then
  2509.     echo shar: \"'src/uucico/uupoll.c'\" unpacked with wrong size!
  2510. fi
  2511. # end of 'src/uucico/uupoll.c'
  2512. fi
  2513. if test ! -d 'src/uuser' ; then
  2514.     echo shar: Creating directory \"'src/uuser'\"
  2515.     mkdir 'src/uuser'
  2516. fi
  2517. if test -f 'src/uuser/DMakefile' -a "${1}" != "-c" ; then 
  2518.   echo shar: Will not clobber existing file \"'src/uuser/DMakefile'\"
  2519. else
  2520. echo shar: Extracting \"'src/uuser/DMakefile'\" \(506 characters\)
  2521. sed "s/^X//" >'src/uuser/DMakefile' <<'END_OF_FILE'
  2522. X
  2523. X#   DMakefile for uuser:
  2524. X#
  2525. X#   (C) Copyright 1989-1990 by Matthew Dillon,  All Rights Reserved.
  2526. X
  2527. XOD=   ltmp:uucp/
  2528. XSYMS= uucp:src/lib/all.m
  2529. XSRCS= uuser.c misc.c
  2530. XOBJS= $(SRCS:"*.c":"$(OD)*.o")
  2531. XCFLAGS= -iuucp:src/include/ -cimq -v
  2532. XLEXE= uucp:l/
  2533. X#LIBS= uucp:src/lib/uucp.lib lib:lc.lib lib:amiga.lib
  2534. XLIBS= lib:lc.lib lib:amiga.lib
  2535. X
  2536. Xall: $(LEXE)uuser-handler
  2537. X
  2538. X$(LEXE)uuser-handler : $(OBJS)
  2539. X    blink from $(OBJS) ADDSYM TO %(left) lib $(LIBS)
  2540. X
  2541. X$(OBJS) : $(SRCS)
  2542. X    lc $(CFLAGS) -H$(SYMS) -o%(left) %(right)
  2543. X
  2544. END_OF_FILE
  2545. if test 506 -ne `wc -c <'src/uuser/DMakefile'`; then
  2546.     echo shar: \"'src/uuser/DMakefile'\" unpacked with wrong size!
  2547. fi
  2548. # end of 'src/uuser/DMakefile'
  2549. fi
  2550. if test -f 'src/uuser/mountlist' -a "${1}" != "-c" ; then 
  2551.   echo shar: Will not clobber existing file \"'src/uuser/mountlist'\"
  2552. else
  2553. echo shar: Extracting \"'src/uuser/mountlist'\" \(100 characters\)
  2554. sed "s/^X//" >'src/uuser/mountlist' <<'END_OF_FILE'
  2555. X
  2556. XUUSER:       Handler = uucp:l/uuser-handler
  2557. X       Stacksize = 6000
  2558. X       Priority = 5
  2559. X       GlobVec  = 1
  2560. X#
  2561. X
  2562. END_OF_FILE
  2563. if test 100 -ne `wc -c <'src/uuser/mountlist'`; then
  2564.     echo shar: \"'src/uuser/mountlist'\" unpacked with wrong size!
  2565. fi
  2566. # end of 'src/uuser/mountlist'
  2567. fi
  2568. if test -f 'src/version.h' -a "${1}" != "-c" ; then 
  2569.   echo shar: Will not clobber existing file \"'src/version.h'\"
  2570. else
  2571. echo shar: Extracting \"'src/version.h'\" \(705 characters\)
  2572. sed "s/^X//" >'src/version.h' <<'END_OF_FILE'
  2573. X
  2574. X/*
  2575. X *  VERSION.H
  2576. X *
  2577. X *  Major version number (minor version numbers kept in subsidary
  2578. X *  files.
  2579. X */
  2580. X
  2581. X#define VERSION "V1.03D(0.40W/0.60W)"
  2582. X
  2583. X#define COPYRIGHT \
  2584. X   "(C) Copyright 1987 by John Gilmore\n"   \
  2585. X   "Copying and use of this program are controlled by the terms of the Free\n" \
  2586. X   "Software Foundation's GNU Emacs General Public License.\n"                \
  2587. X   "Amiga Changes Copyright 1988 by William Loftus. All rights reserved.\n"     \
  2588. X   "Additional chgs Copyright 1989 by Matthew Dillon, All Rights Reserved.\n"
  2589. X
  2590. X#define DCOPYRIGHT \
  2591. X    "(c)Copyright 1990, Matthew Dillon, all rights reserved\n"
  2592. X
  2593. X#define IDENT(subv)   static char *Ident = "@($)" __FILE__ " " VERSION subv " " __DATE__
  2594. X
  2595. END_OF_FILE
  2596. if test 705 -ne `wc -c <'src/version.h'`; then
  2597.     echo shar: \"'src/version.h'\" unpacked with wrong size!
  2598. fi
  2599. # end of 'src/version.h'
  2600. fi
  2601. echo shar: End of archive 1 \(of 16\).
  2602. cp /dev/null ark1isdone
  2603. MISSING=""
  2604. for I in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 ; do
  2605.     if test ! -f ark${I}isdone ; then
  2606.     MISSING="${MISSING} ${I}"
  2607.     fi
  2608. done
  2609. if test "${MISSING}" = "" ; then
  2610.     echo You have unpacked all 16 archives.
  2611.     rm -f ark[1-9]isdone ark[1-9][0-9]isdone
  2612. else
  2613.     echo You still need to unpack the following archives:
  2614.     echo "        " ${MISSING}
  2615. fi
  2616. ##  End of shell archive.
  2617. exit 0
  2618. -- 
  2619. Submissions to comp.sources.amiga and comp.binaries.amiga should be sent to:
  2620.     amiga@cs.odu.edu    
  2621. or    amiga@xanth.cs.odu.edu    ( obsolescent mailers may need this address )
  2622. or    ...!uunet!xanth!amiga    ( very obsolescent mailers need this address )
  2623.  
  2624. Comments, questions, and suggestions should be addressed to ``amiga-request''
  2625. (please only use ``amiga'' for actual submissions) at the above addresses.
  2626.